diff options
author | Kevin Hilman <khilman@baylibre.com> | 2017-10-02 22:15:44 +0000 |
---|---|---|
committer | Kevin Hilman <khilman@baylibre.com> | 2017-10-02 22:15:47 +0000 |
commit | e4c345960f64651d6cecda988bc00217565be417 (patch) | |
tree | 17167f8507c5b213b5e6edb0fa0b2abe1fc25ad7 /jjb/common | |
parent | 51c33d66567ba1e8642c7d142337dab6b94e1d11 (diff) |
jjb/common: aglsetup: save pre-build env
Save some pre-build environment which can be saved/uploaded
and used to reproduce builds and share with downstream CI
infrastructure.
Change-Id: Iec896bb6a1936158986907b06cb6367ed775ddf4
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'jjb/common')
-rw-r--r-- | jjb/common/include-agl-source-aglsetup.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/jjb/common/include-agl-source-aglsetup.sh b/jjb/common/include-agl-source-aglsetup.sh index bb76f107..2b010e1b 100644 --- a/jjb/common/include-agl-source-aglsetup.sh +++ b/jjb/common/include-agl-source-aglsetup.sh @@ -15,3 +15,19 @@ ln -sf ../../sstate-cache echo "" >> conf/local.conf echo "### ADDED BY AUTOBUILDER ###" >> conf/local.conf echo "" >> conf/local.conf + +# save some pre-build env needed to uniquely identify the source +MANIFEST_R=repo-manifest-r.txt +repo manifest -r > ${MANIFEST_R} +sha1sum ${MANIFEST_R} | awk '{print $1}' > ${MANIFEST_R}.sha1 + +cat <<EOF > pre-build-env.txt +TARGETBRANCH=${TARGETBRANCH} +TARGETIMAGE=${TARGETIMAGE} +TARGETFEATURES=${TARGETFEATURES} +TARGETMACHINE=${TARGETMACHINE} +TARGETPROJECT=${TARGETPROJECT} +MACHINE=${MACHINE} +GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER} +GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER} +EOF |