Skip to content

Commit

Permalink
Remove plugin to OS min race condition (#2717)
Browse files Browse the repository at this point in the history
Signed-off-by: prudhvigodithi <[email protected]>

Signed-off-by: prudhvigodithi <[email protected]>
  • Loading branch information
prudhvigodithi authored Oct 11, 2022
1 parent 1d84633 commit 7a4f4dc
Showing 1 changed file with 43 additions and 8 deletions.
51 changes: 43 additions & 8 deletions jenkins/opensearch/distribution-build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ pipeline {
}
stage('build') {
parallel {
stage('build-snapshot-linux-x64-tar') {
stage('build-distribution-snapshot-linux-x64-tar') {
when {
beforeAgent true
expression{
Expand Down Expand Up @@ -156,6 +156,42 @@ pipeline {
} else {
echo "Skipping publishing snapshots, ${mavenPath} does not exist."
}
}
}
post {
always {
postCleanup()
}
}
}
stage('build-opensearch-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: "OpenSearch",
inputManifest: "manifests/${INPUT_MANIFEST}",
platform: 'linux',
architecture: 'x64',
distribution: 'tar',
snapshot: true
)
echo("Uploading min snapshots to S3")
uploadMinSnapshotsToS3(
fileActions: [createSha512Checksums()],
Expand All @@ -169,7 +205,7 @@ pipeline {
}
}
}
stage('build-snapshot-linux-arm64-tar') {
stage('build-opensearch-snapshot-linux-arm64-tar') {
when {
beforeAgent true
expression{
Expand All @@ -187,7 +223,7 @@ pipeline {
steps {
script {
buildManifest(
componentName: "${COMPONENT_NAME}",
componentName: "OpenSearch",
inputManifest: "manifests/${INPUT_MANIFEST}",
platform: 'linux',
architecture: 'x64',
Expand All @@ -207,7 +243,7 @@ pipeline {
}
}
}
stage('build-snapshot-macos-x64-tar') {
stage('build-opensearch-snapshot-macos-x64-tar') {
when {
beforeAgent true
expression{
Expand All @@ -225,7 +261,7 @@ pipeline {
steps {
script {
buildManifest(
componentName: "${COMPONENT_NAME}",
componentName: "OpenSearch",
inputManifest: "manifests/${INPUT_MANIFEST}",
platform: 'darwin',
architecture: 'x64',
Expand All @@ -245,7 +281,7 @@ pipeline {
}
}
}
stage('build-snapshot-windows-x64-zip') {
stage('build-opensearch-snapshot-windows-x64-zip') {
when {
beforeAgent true
expression{
Expand All @@ -263,7 +299,7 @@ pipeline {
steps {
script {
buildManifest(
componentName: "${COMPONENT_NAME}",
componentName: "OpenSearch",
inputManifest: "manifests/${INPUT_MANIFEST}",
platform: 'windows',
architecture: 'x64',
Expand Down Expand Up @@ -849,4 +885,3 @@ pipeline {
}
}
}

0 comments on commit 7a4f4dc

Please sign in to comment.