-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support container tests inherit Jenkins aqa-tests repo and testenv (#…
…5356) - Support container tests inherit Jenkins aqa-tests repo and testenv - The mismatch previously caused failure in release Signed-off-by: LongyuZhang <[email protected]>
- Loading branch information
1 parent
face041
commit a0accb3
Showing
8 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,22 +50,22 @@ def setupEnv() { | |
|
||
env.SPEC = "${SPEC}" | ||
if(!params.USE_TESTENV_PROPERTIES){ | ||
ADOPTOPENJDK_REPO = params.ADOPTOPENJDK_REPO ? params.ADOPTOPENJDK_REPO : "https://github.com/adoptium/aqa-tests.git" | ||
env.ADOPTOPENJDK_REPO = params.ADOPTOPENJDK_REPO ? params.ADOPTOPENJDK_REPO : "https://github.com/adoptium/aqa-tests.git" | ||
OPENJ9_REPO = params.OPENJ9_REPO ? params.OPENJ9_REPO : "https://github.com/eclipse-openj9/openj9.git" | ||
String[] tkg = getGitRepoBranch(params.TKG_OWNER_BRANCH, "adoptium:master", "TKG") | ||
TKG_REPO = tkg[0] | ||
TKG_BRANCH = tkg[1] | ||
//For Zos, the right repo should be something like: [email protected]:runtimes/openj9-openjdk-jdk**-zos.git and for now there is only jdk11 | ||
env.JDK_REPO = params.JDK_REPO ? params.JDK_REPO : "" | ||
if (env.SPEC.startsWith('zos')) { | ||
ADOPTOPENJDK_REPO = ADOPTOPENJDK_REPO.replace("https://github.com/","[email protected]:") | ||
env.ADOPTOPENJDK_REPO = env.ADOPTOPENJDK_REPO.replace("https://github.com/","[email protected]:") | ||
OPENJ9_REPO = OPENJ9_REPO.replace("https://github.com/","[email protected]:") | ||
} | ||
OPENJ9_BRANCH = params.OPENJ9_BRANCH ? params.OPENJ9_BRANCH : "master" | ||
} | ||
|
||
PLATFORM = params.PLATFORM ? params.PLATFORM : "" | ||
ADOPTOPENJDK_BRANCH = params.ADOPTOPENJDK_BRANCH ? params.ADOPTOPENJDK_BRANCH : "master" | ||
env.ADOPTOPENJDK_BRANCH = params.ADOPTOPENJDK_BRANCH ? params.ADOPTOPENJDK_BRANCH : "master" | ||
CLONE_OPENJ9 = params.CLONE_OPENJ9 ? params.CLONE_OPENJ9 : "true" | ||
CUSTOM_TARGET = params.CUSTOM_TARGET ? params.CUSTOM_TARGET : "" | ||
UPSTREAM_JOB_NAME = params.UPSTREAM_JOB_NAME ? params.UPSTREAM_JOB_NAME : "" | ||
|
@@ -121,7 +121,7 @@ def setupEnv() { | |
// to take personal repo and branch. | ||
// Therefore, set LIGHT_WEIGHT_CHECKOUTto false and GENERATE_JOBS to true. | ||
// This is a known Jenkins issue: https://issues.jenkins.io/browse/JENKINS-42971 | ||
if (!ADOPTOPENJDK_REPO.contains("adoptium/aqa-tests")) { | ||
if (!env.ADOPTOPENJDK_REPO.contains("adoptium/aqa-tests")) { | ||
env.LIGHT_WEIGHT_CHECKOUT = false | ||
env.GENERATE_JOBS = true | ||
echo "ADOPTOPENJDK_REPO is set to personal repo in Grinder. Auto-set LIGHT_WEIGHT_CHECKOUT: ${env.LIGHT_WEIGHT_CHECKOUT} and GENERATE_JOBS: ${env.GENERATE_JOBS}" | ||
|
@@ -1072,7 +1072,7 @@ def archiveAQAvitFiles() { | |
if (params.ARTIFACTORY_SERVER) { | ||
def currentDate = new Date() | ||
def currentDateTime = currentDate.format("yyyyMMddHHmmss", TimeZone.getTimeZone('UTC')) | ||
def uploadDir = "AQAvit/${JDK_IMPL}/${ADOPTOPENJDK_BRANCH}/${JDK_VERSION}/${PLATFORM}/${currentDateTime}" | ||
def uploadDir = "AQAvit/${JDK_IMPL}/${env.ADOPTOPENJDK_BRANCH}/${JDK_VERSION}/${PLATFORM}/${currentDateTime}" | ||
uploadToArtifactory("${env.WORKSPACE}/**/*.tap", uploadDir) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters