Skip to content

Commit

Permalink
improve label detection
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Oct 16, 2024
1 parent 6a1e047 commit 10b6061
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions buildenv/jenkins/openjdk_tests
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,7 @@ def runTest() {
}
}
jenkinsfile = load "${WORKSPACE}/aqa-tests/buildenv/jenkins/JenkinsfileBase"
// Check the node for full set of labels
def JobHelper = library(identifier: 'openjdk-jenkins-helper@master').JobHelper
def labels = JobHelper.getLabels(NODE_NAME)

if (LABEL.contains('ci.agent.dynamic') && labels.contains('dynamicAzure')) {
if (LABEL.contains('ci.agent.dynamic') && CLOUD_PROVIDER.equals('azure')) {
// Set dockerimage for azure agent. Fyre has stencil to setup the right environment
docker.image('ghcr.io/adoptium/test-containers:ubuntu2204').pull()
docker.image('ghcr.io/adoptium/test-containers:ubuntu2204').inside {
Expand Down

0 comments on commit 10b6061

Please sign in to comment.