tf-a-builder: add SQUAD integration
This patch changes how LAVA jobs are submitted. Submission step happens
in tf-a-builder job using a publishing step. This step depends on
successul artifact publishing so it should prevent LAVA from trying to
access artifacts before they're available.
Test job definitions are submitted to SQUAD using 'submitjob' API. SQUAD
tracks the results of the test jobs after all test jobs are completed
submits automated review to Gerrit. One review is submitted for each
trigger. Each jenkins trigger job corresponds to a project in SQUAD.
These projects have to be configured before this patch is applied.
Trigger job descriptions are updated with links to SQUAD test jobs.
These redirect to LAVA jobs (if already submitted).
When triggering a build manually for master, no Gerrit review is added.
Test job results can be still inspected in SQUAD and LAVA. SQUAD might
give a regression/fixes report if required.
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Change-Id: Ie844fd72831b8b02ba8b4efb534f21b2f0133cd3
diff --git a/tf-gerrit-tforg-l2.yaml b/tf-gerrit-tforg-l2.yaml
index 8f60d69..73341f7 100644
--- a/tf-gerrit-tforg-l2.yaml
+++ b/tf-gerrit-tforg-l2.yaml
@@ -35,6 +35,12 @@
- string:
name: GERRIT_REFSPEC
default: 'refs/heads/master'
+ - string:
+ name: GERRIT_PATCHSET_NUMBER
+ default: ''
+ - string:
+ name: GERRIT_CHANGE_NUMBER
+ default: ''
wrappers:
- credentials-binding:
- ssh-user-private-key:
@@ -51,6 +57,10 @@
set -e
cat << EOF > env.param
+ GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
+ GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
+ QA_SERVER_PROJECT=${JOB_NAME}
+ QA_SERVER_VERSION=${BUILD_NUMBER}
GERRIT_PROJECT=${GERRIT_PROJECT}
GERRIT_BRANCH=${GERRIT_BRANCH}
GERRIT_REFSPEC=${GERRIT_REFSPEC}