diff options
-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 |