Skip to content

Commit

Permalink
Prevent node reuse to ensure stability (#396)
Browse files Browse the repository at this point in the history
The parallel configuration was causing build nodes to be reused, leading to build failures.  Cleaning the workspace between actions and removing the parallel execution.  Tested the premise on a local jenkins instance, will need to validate on the build node.

Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied authored Sep 7, 2021
1 parent 7fc7d41 commit 035bb47
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions bundle-workflow/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pipeline {
}
}
stage('build') {
parallel {
stages {
stage('build-snapshots') {
environment {
SNAPSHOT_REPO_URL = "https://aws.oss.sonatype.org/content/repositories/snapshots/"
Expand All @@ -43,6 +43,11 @@ pipeline {
}
}
}
post() {
always {
cleanWs disableDeferredWipeout: true, deleteDirs: true
}
}
}
stage('build-x86') {
agent {
Expand All @@ -55,6 +60,11 @@ pipeline {
build()
}
}
post() {
always {
cleanWs disableDeferredWipeout: true, deleteDirs: true
}
}
}
stage('build-arm64') {
agent {
Expand All @@ -67,6 +77,11 @@ pipeline {
build()
}
}
post() {
always {
cleanWs disableDeferredWipeout: true, deleteDirs: true
}
}
}
}
}
Expand All @@ -84,4 +99,4 @@ void build() {
s3Upload(file: 'artifacts', bucket: "${ARTIFACT_BUCKET_NAME}", path: "builds/${manifest.build.version}/${OPENSEARCH_BUILD_ID}/${manifest.build.architecture}")
s3Upload(file: "bundle", bucket: "${ARTIFACT_BUCKET_NAME}", path: "bundles/${manifest.build.version}/${OPENSEARCH_BUILD_ID}/${manifest.build.architecture}")
}
}
}

0 comments on commit 035bb47

Please sign in to comment.