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 bd8dc33 commit 6a1e047
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions buildenv/jenkins/openjdk_tests
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,12 @@ def runTest() {
}
}
jenkinsfile = load "${WORKSPACE}/aqa-tests/buildenv/jenkins/JenkinsfileBase"
if (LABEL.contains('ci.agent.dynamic') && CLOUD_PROVIDER.equals('azure')) {
//Set dockerimage for azure agent. Fyre has stencil to setup the right environment
// 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')) {
// 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 {
jenkinsfile.testBuild()
Expand Down

0 comments on commit 6a1e047

Please sign in to comment.