Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refine copyArtifacts logic
Browse files Browse the repository at this point in the history
- donwload the 3rd party jars based on BUILD_LIST

Signed-off-by: Lan Xia <[email protected]>
llxia committed Nov 10, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 4a1eca1 commit ced6cea
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
@@ -188,9 +188,9 @@ def setupParallelEnv() {
}

try {
//get pre-staged jars from test.getDependency build
timeout(time: 2, unit: 'HOURS') {
copyArtifacts fingerprintArtifacts: true, projectName: "test.getDependency", selector: lastSuccessful(), target: 'aqa-tests/TKG/lib'
// Only json-simple.jar is needed for compiling TKG
timeout(time: 15, unit: 'MINUTES') {
copyArtifacts fingerprintArtifacts: true, projectName: "test.getDependency", filter: "json-simple.jar", selector: lastSuccessful(), target: 'aqa-tests/TKG/lib'
}
} catch (Exception e) {
echo 'Exception: ' + e.toString()
@@ -624,29 +624,33 @@ def buildTest() {

try {
//get pre-staged jars from test.getDependency build before test compilation
timeout(time: 2, unit: 'HOURS') {
copyArtifacts fingerprintArtifacts: true, projectName: "test.getDependency", selector: lastSuccessful(), target: 'aqa-tests/TKG/lib'
timeout(time: 15, unit: 'MINUTES') {
copyArtifacts fingerprintArtifacts: true, projectName: "test.getDependency", filter: "json-simple.jar", selector: lastSuccessful(), target: 'aqa-tests/TKG/lib'
}
} catch (Exception e) {
echo 'Exception: ' + e.toString()
echo 'Cannot run copyArtifacts from test.getDependency. Skipping copyArtifacts...'
}

try {
if (env.BUILD_LIST.startsWith('system')) {
if (env.BUILD_LIST.contains('functional')) {
timeout(time: 60, unit: 'MINUTES') {
copyArtifacts fingerprintArtifacts: true, projectName: "test.getDependency", excludes: "json-simple.jar, jtreg*.*", selector: lastSuccessful(), target: 'aqa-tests/TKG/lib'
}
}
if (env.BUILD_LIST.contains('openjdk')) {
timeout(time: 60, unit: 'MINUTES') {
copyArtifacts fingerprintArtifacts: true, projectName: "test.getDependency", filter: "jtreg*.*,openj9jtregtimeouthandler.*", selector: lastSuccessful(), target: 'aqa-tests/TKG/lib'
}
}
if (env.BUILD_LIST.contains('system')) {
//get pre-staged test jars from systemtest.getDependency build before system test compilation
timeout(time: 2, unit: 'HOURS') {
timeout(time: 60, unit: 'MINUTES') {
copyArtifacts fingerprintArtifacts: true, projectName: "systemtest.getDependency", selector: lastSuccessful(), target: 'aqa-tests'
}
}
} catch (Exception e) {
echo 'Exception: ' + e.toString()
echo 'Cannot run copyArtifacts from systemtest.getDependency. Skipping copyArtifacts...'
echo 'Cannot run copyArtifacts from test.getDependency/systemtest.getDependency. Skipping copyArtifacts...'
}

if (BUILD_LIST.contains("external")){
try {
timeout(time: 2, unit: 'HOURS') {
timeout(time: 60, unit: 'MINUTES') {
copyArtifacts fingerprintArtifacts: true, projectName: "UploadFileOnJenkins", selector: specific("2"), target: 'aqa-tests/external/criu/'
copyArtifacts fingerprintArtifacts: true, projectName: "UploadFileOnJenkins", selector: specific("3"), target: 'aqa-tests/external/criu/'
}

0 comments on commit ced6cea

Please sign in to comment.