diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2017-10-04 17:29:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2017-10-04 17:29:33 +0000 |
commit | 13bc29cda2259856aac1b25328c606a97c907dd6 (patch) | |
tree | 034bf479c4b348e25bd5187e27cc3a08737738e7 /jjb | |
parent | 430aea8b7790455db6e35b3294246bd34a911195 (diff) | |
parent | e4c345960f64651d6cecda988bc00217565be417 (diff) |
Merge "jjb/common: aglsetup: save pre-build env"
Diffstat (limited to 'jjb')
-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 |