You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2022/01/18 04:19:40 UTC
[couchdb] 01/02: Allow customizing docker agent by label
This is an automated email from the ASF dual-hosted git repository.
kocolosk pushed a commit to branch jenkins-dynamic-matrix
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 842ffd4fa42878bce0bd308b5bd2d6b42cb55e7d
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Mon Jan 17 23:18:20 2022 -0500
Allow customizing docker agent by label
---
build-aux/Jenkinsfile.full | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/build-aux/Jenkinsfile.full b/build-aux/Jenkinsfile.full
index 0cf41e7..f5deb71 100644
--- a/build-aux/Jenkinsfile.full
+++ b/build-aux/Jenkinsfile.full
@@ -173,13 +173,21 @@ def generateNativeStage(platform) {
}
}
+def getNodeLabel(platform) {
+ if (meta[platform].node_label) {
+ return meta[platform].node_label
+ }
+ else {
+ return 'docker'
+ }
+}
+
def generateContainerStage(platform) {
return {
// Important: the stage name here must match the parallelStagesMap key for the
// Jenkins UI to render the pipeline stages correctly. Don't ask why. -APK
stage(platform) {
- // TODO allow for other labels, e.g. arm64v8
- node('docker') {
+ node(getNodeLabel(platform)) {
docker.withRegistry('https://docker.io/', 'dockerhub_creds') {
docker.image(meta[platform].image).inside("${DOCKER_ARGS}") {
timeout(time: 90, unit: "MINUTES") {