File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -458,8 +458,12 @@ def runTest() {
458
458
}
459
459
}
460
460
jenkinsfile = load " ${ WORKSPACE} /aqa-tests/buildenv/jenkins/JenkinsfileBase"
461
- if (LABEL . contains(' ci.agent.dynamic' ) && CLOUD_PROVIDER . equals(' azure' )) {
462
- // Set dockerimage for azure agent. Fyre has stencil to setup the right environment
461
+ // Check the node for full set of labels
462
+ def JobHelper = library(identifier : ' openjdk-jenkins-helper@master' ). JobHelper
463
+ def labels = JobHelper . getLabels(NODE_NAME )
464
+
465
+ if (LABEL . contains(' ci.agent.dynamic' ) && labels. contains(' dynamicAzure' )) {
466
+ // Set dockerimage for azure agent. Fyre has stencil to setup the right environment
463
467
docker. image(' ghcr.io/adoptium/test-containers:ubuntu2204' ). pull()
464
468
docker. image(' ghcr.io/adoptium/test-containers:ubuntu2204' ). inside {
465
469
jenkinsfile. testBuild()
You can’t perform that action at this time.
0 commit comments