Skip to content

Commit

Permalink
Remove snapshot publication script as well as stage from build pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <[email protected]>
  • Loading branch information
gaiksaya committed Mar 17, 2023
1 parent c4de95b commit 2f9345c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 187 deletions.
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.

0 comments on commit 2f9345c

Please sign in to comment.