Skip to content

Commit

Permalink
Make sure the build repo is pulled in docker-build stage
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Apr 29, 2022
1 parent ec6c37c commit 02c1262
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 23 deletions.
28 changes: 17 additions & 11 deletions jenkins/opensearch-dashboards/distribution-build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -433,18 +433,24 @@ pipeline {
return params.BUILD_DOCKER
}
}
agent {
docker {
label AGENT_X64
image dockerAgent.image
args dockerAgent.args
alwaysPull true
}
}
steps {
node(AGENT_X64) {
script {
echo "env.ARTIFACT_URL_X64_TAR: ${env.ARTIFACT_URL_X64_TAR}"
echo "env.ARTIFACT_URL_ARM64_TAR: ${env.ARTIFACT_URL_ARM64_TAR}"

buildDockerImage(
inputManifest: "manifests/${INPUT_MANIFEST}",
artifactUrlX64: env.ARTIFACT_URL_X64_TAR,
artifactUrlArm64: env.ARTIFACT_URL_ARM64_TAR
)
}
script {
echo "env.ARTIFACT_URL_X64_TAR: ${env.ARTIFACT_URL_X64_TAR}"
echo "env.ARTIFACT_URL_ARM64_TAR: ${env.ARTIFACT_URL_ARM64_TAR}"

buildDockerImage(
inputManifest: "manifests/${INPUT_MANIFEST}",
artifactUrlX64: env.ARTIFACT_URL_X64_TAR,
artifactUrlArm64: env.ARTIFACT_URL_ARM64_TAR
)
}
}
}
Expand Down
29 changes: 17 additions & 12 deletions jenkins/opensearch/distribution-build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -432,19 +432,24 @@ pipeline {
return params.BUILD_DOCKER
}
}
agent {
docker {
label AGENT_X64
image dockerAgent.image
args dockerAgent.args
alwaysPull true
}
}
steps {
node('Jenkins-Agent-al2-x64-c54xlarge-Docker-Host') {
script {

echo "env.ARTIFACT_URL_X64_TAR: ${env.ARTIFACT_URL_X64_TAR}"
echo "env.ARTIFACT_URL_ARM64_TAR: ${env.ARTIFACT_URL_ARM64_TAR}"

buildDockerImage(
inputManifest: "manifests/${INPUT_MANIFEST}",
artifactUrlX64: env.ARTIFACT_URL_X64_TAR,
artifactUrlArm64: env.ARTIFACT_URL_ARM64_TAR
)
}
script {
echo "env.ARTIFACT_URL_X64_TAR: ${env.ARTIFACT_URL_X64_TAR}"
echo "env.ARTIFACT_URL_ARM64_TAR: ${env.ARTIFACT_URL_ARM64_TAR}"

buildDockerImage(
inputManifest: "manifests/${INPUT_MANIFEST}",
artifactUrlX64: env.ARTIFACT_URL_X64_TAR,
artifactUrlArm64: env.ARTIFACT_URL_ARM64_TAR
)
}
}
}
Expand Down

0 comments on commit 02c1262

Please sign in to comment.