Skip to content

Commit

Permalink
Testing only
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
  • Loading branch information
sophia-guo committed May 7, 2024
1 parent 4b2c276 commit aec670c
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ def generateJob (newJobs, childTest, testJobName) {
if (env.GENERATE_JOBS) {
newJobs[childTest] = {
echo "GENERATE_JOBS is set to true, set test job ${testJobName} params for generating the job"
createJob(testJobName, PLATFORM)
//createJob(testJobName, PLATFORM)
}
} else {
def jobIsRunnable = false
Expand Down Expand Up @@ -1350,19 +1350,28 @@ def triggerRerunJob () {
def rerunJob = build job: rerunJobName, parameters: childParams, propagate: false
def jobResult = rerunJob.getResult()
def buildId = rerunJob.getNumber()
try {
echo "${rerunJobName} #${buildId} completed with status ${jobResult}"
echo "${rerunJobName} #${buildId} completed with status ${jobResult}"
node (env.SETUP_LABEL) {
timeout(time: 1, unit: 'HOURS') {
copyArtifacts (projectName: "${rerunJobName}",
selector: specific("${buildId}"),
filter: "**/*.tap",
target:"${rerunJobName}/${buildId}")
try {
copyArtifacts (projectName: "${rerunJobName}",
selector: specific("${buildId}"),
filter: "**/*.tap",
target:"${rerunJobName}/${buildId}")
} catch (Exception e) {
echo 'Exception: ' + e.toString()
echo "Cannot copy *.tap from ${rerunJobName} with buildid ${buildId} . Skipping copyArtifacts..."
}

try {
step([$class: "TapPublisher", testResults: "${rerunJobName}/${buildId}/**/*.tap", outputTapToConsole: false, failIfNoResults: true])
archiveFile("${rerunJobName}/${buildId}/**/*.tap", true)
} catch (Exception e) {
echo 'Exception: ' + e.toString()
echo "Cannot archive tap files from ${rerunJobName} with buildid ${buildId}. Exit ..."
}
}
step([$class: "TapPublisher", testResults: "${name}/${buildId}/**/*.tap", outputTapToConsole: false, failIfNoResults: true])
archiveFile("${name}/${buildId}/**/*.tap", true)
} catch (Exception e) {
echo 'Exception: ' + e.toString()
echo "Cannot copy *.tap from ${rerunJobName} with buildid ${buildId} . Skipping copyArtifacts..."

}
}
}
Expand Down

0 comments on commit aec670c

Please sign in to comment.