Skip to content

Commit

Permalink
Archive results of dedicated triggered update job
Browse files Browse the repository at this point in the history
... as well in the parent aka triggering job

CMK-20711

Change-Id: Icec1575d1fd97ca88800ea7c947557a120731414
  • Loading branch information
JonasScharpf committed Dec 23, 2024
1 parent a64fce4 commit 512d2bd
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion buildscripts/scripts/test-update.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def main() {
condition: run_condition,
raiseOnError: true,
) {
build(
def job = build(
job: relative_job_name,
propagate: true, // Raise any errors
parameters: [
Expand All @@ -88,13 +88,36 @@ def main() {
string(name: "CIPARAM_CLEANUP_WORKSPACE", value: CIPARAM_CLEANUP_WORKSPACE),
],
);

copyArtifacts(
projectName: relative_job_name,
selector: specific(job.getId()), // buildNumber shall be a string
target: "${checkout_dir}/test-results",
fingerprintArtifacts: true
);
}
}
}

stage('Run update tests') {
parallel build_for_parallel;
}

stage("Archive / process test reports") {
dir("${checkout_dir}") {
show_duration("archiveArtifacts") {
archiveArtifacts(allowEmptyArchive: true, artifacts: "test-results/**");
}
xunit([Custom(
customXSL: "$JENKINS_HOME/userContent/xunit/JUnit/0.1/pytest-xunit.xsl",
deleteOutputFiles: true,
failIfNotNew: true,
pattern: "**/junit.xml",
skipNoTestFiles: false,
stopProcessingIfError: true
)]);
}
}
}

return this;

0 comments on commit 512d2bd

Please sign in to comment.