ci.jpl: Only run performance.py in tf-m-nightly-performance job
There is no performance related log files in other jobs than
tf-m-nightly-performance job. To avoid unexpected errors, only run
performance.py in tf-m-nightly-performance job.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: Ia815700f71ca41d36a4432193544d2beb337e564
diff --git a/jenkins/ci.jpl b/jenkins/ci.jpl
index 743c056..c614756 100644
--- a/jenkins/ci.jpl
+++ b/jenkins/ci.jpl
@@ -405,8 +405,10 @@
archiveArtifacts artifacts: 'merged_report/**', allowEmptyArchive: true
}
}
- withCredentials([string(credentialsId: 'QA_REPORTS_TOKEN', variable: 'TOKEN')]) {
- sh(script: """./tf-m-ci-scripts/performance.py --send-squad --squad-token ${TOKEN} > SQUAD.log""")
+ if (env.JOB_NAME.equals("tf-m-nightly-performance")) {
+ withCredentials([string(credentialsId: 'QA_REPORTS_TOKEN', variable: 'TOKEN')]) {
+ sh(script: """./tf-m-ci-scripts/performance.py --send-squad --squad-token ${TOKEN} > SQUAD.log""")
+ }
}
}
}