Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove snapshot publication script as well as stage from build pipeline #3329

Merged
merged 1 commit into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions jenkins/opensearch/distribution-build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,52 +130,6 @@ pipeline {
}
stage('build') {
parallel {
stage('build-distribution-snapshot-linux-x64-tar') {
when {
beforeAgent true
expression{
params.BUILD_PLATFORM.contains('linux')
}
}
environment {
SNAPSHOT_REPO_URL = "https://aws.oss.sonatype.org/content/repositories/snapshots/"
}
agent {
docker {
label AGENT_X64
image dockerAgent.image
args dockerAgent.args
alwaysPull true
}
}
steps {
script {
buildManifest(
componentName: "${COMPONENT_NAME}",
inputManifest: "manifests/${INPUT_MANIFEST}",
platform: 'linux',
architecture: 'x64',
distribution: 'tar',
snapshot: true
)

String mavenPath = "$WORKSPACE/tar/builds/opensearch/maven"

if (fileExists(mavenPath)) {
withCredentials([usernamePassword(credentialsId: 'jenkins-sonatype-creds', usernameVariable: 'SONATYPE_USERNAME', passwordVariable: 'SONATYPE_PASSWORD')]) {
sh("$WORKSPACE/publish/publish-snapshot.sh ${mavenPath}")
}
} else {
echo "Skipping publishing snapshots, ${mavenPath} does not exist."
}
}
}
post {
always {
postCleanup()
}
}
}
stage('build-opensearch-snapshot-linux-x64-tar') {
when {
beforeAgent true
Expand Down
141 changes: 0 additions & 141 deletions publish/publish-snapshot.sh

This file was deleted.