Workaround: Aggregate downstream test results

后端 未结 3 1109
南笙
南笙 2021-02-06 05:52

As far as I know, the feature \"Aggregate downstream test results\" does not work as expected (and it is very hard to find useful documentation). I\'d like to achieve very simil

3条回答
  •  名媛妹妹
    2021-02-06 06:37

    Two additions to malenkiy_scot's post:

    1. You don't actually need a script for step 3 in the description: The "copy artifacts from another project" build step allows specifying the source job including parameters already.

      For example, using the parent's notation, it can copy artifacts from the correct execution of job D by using D/PARENT_ID=EXPECTED_VALUE as the "project name".

    2. Instead of manually concatenating $JOB_NAME and $BUILD_ID you can use the predefined $BUILD_TAG (which does essentially the same). See https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-JenkinsSetEnvironmentVariables for the full list of standard environment variables.

提交回复
热议问题