diff --git a/buildenv/jenkins/JenkinsfileBase b/buildenv/jenkins/JenkinsfileBase index aa784067e7..95342e33e8 100644 --- a/buildenv/jenkins/JenkinsfileBase +++ b/buildenv/jenkins/JenkinsfileBase @@ -105,8 +105,14 @@ def setupEnv() { env.EXIT_FAILURE = params.EXIT_FAILURE ? params.EXIT_FAILURE : false env.EXIT_SUCCESS = params.EXIT_SUCCESS ? params.EXIT_SUCCESS : false NUM_MACHINES = params.NUM_MACHINES ? params.NUM_MACHINES.toInteger() : 1 - env.LIB_DIR = JOB_NAME.contains("SmokeTests") ? "${WORKSPACE}/../../../../../testDependency/lib" : "${WORKSPACE}/../../testDependency/lib" - env.SYSTEM_LIB_DIR = JOB_NAME.contains("SmokeTests") ? "${WORKSPACE}/../../../../../testDependency/system_lib" : "${WORKSPACE}/../../testDependency/system_lib" + if (CLOUD_PROVIDER == 'azure') { + // Needs to be inside the workspace as the docker container won't have permissions to write to higher level directories + env.LIB_DIR = "${WORKSPACE}/testDependency/lib" + env.SYSTEM_LIB_DIR = "${WORKSPACE}/testDependency/system_lib" + } else { + env.LIB_DIR = JOB_NAME.contains("SmokeTests") ? "${WORKSPACE}/../../../../../testDependency/lib" : "${WORKSPACE}/../../testDependency/lib" + env.SYSTEM_LIB_DIR = JOB_NAME.contains("SmokeTests") ? "${WORKSPACE}/../../../../../testDependency/system_lib" : "${WORKSPACE}/../../testDependency/system_lib" + } env.OPENJCEPLUS_GIT_REPO = params.OPENJCEPLUS_GIT_REPO ?: "https://github.com/ibmruntimes/OpenJCEPlus.git" env.OPENJCEPLUS_GIT_BRANCH = params.OPENJCEPLUS_GIT_BRANCH ?: "semeru-java${params.JDK_VERSION}" diff --git a/buildenv/jenkins/openjdk_tests b/buildenv/jenkins/openjdk_tests index 8248cce117..8a922252d1 100644 --- a/buildenv/jenkins/openjdk_tests +++ b/buildenv/jenkins/openjdk_tests @@ -459,9 +459,9 @@ 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 - docker.image('adoptopenjdk/centos7_build_image').pull() - docker.image('adoptopenjdk/centos7_build_image').inside { + // 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() } } else if (dockerAgentLabel.equals('default') && LABEL.contains('&&sw.tool.docker') && SPEC.equals('linux_riscv64')) {