diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2016-11-22 11:14:00 +0530 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-11-22 07:35:32 +0000 |
commit | a0c3b8a4af99cb56fa9e0e5576df4d35a520686f (patch) | |
tree | 36e6794df5ef037371397d566a4c344827d5026c /android-r-lcr-manifest.yaml | |
parent | 4500f52d7e1f3e0159f21d0fdc235eeb4e43fe46 (diff) |
android-r-lcr-manifest: add a job to create r-lcr manifest
Change-Id: I1b295af73ab5bf73ce35604012d3cba438bd0e74
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'android-r-lcr-manifest.yaml')
-rw-r--r-- | android-r-lcr-manifest.yaml | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/android-r-lcr-manifest.yaml b/android-r-lcr-manifest.yaml new file mode 100644 index 00000000..efb66897 --- /dev/null +++ b/android-r-lcr-manifest.yaml @@ -0,0 +1,68 @@ +- job: + name: android-r-lcr-manifest + project-type: freestyle + defaults: global + properties: + - authorization: + anonymous: + - job-read + linaro: + - job-build + - job-cancel + - build-discarder: + days-to-keep: 60 + num-to-keep: 60 + parameters: + - string: + name: MANIFEST_URL + default: '' + description: "The pinned manifest URL of release candidate for which we want to generate manifest with tags for each repository" + - string: + name: RELEASE_TAG + default: '' + description: "Release tag for every untagged repository. It is generally of the form R-LCR-YY.MM" + - string: + name: GERRIT_USER + default: '' + description: "Gerrit username to be used for pushing the tags to the git repository" + disabled: false + node: docker-utopic-aosp + display-name: 'Job to generate R-LCR Manifest' + wrappers: + - timestamps + - timeout: + timeout: 500 + builders: + - linaro-publish-token + - shell: | + #!/bin/bash + + mkdir -p out + wget -q ${MANIFEST_URL} -O out/R-LCR.xml + wget -q https://git.linaro.org/ci/job/configs.git/plain/android-r-lcr-manifest/tag-manifest.sh + + repo init -u https://android.googlesource.com/platform/manifest + cp -a out/R-LCR.xml .repo/manifest.xml + repo sync -j16 -c + repo forall -c "sh ${PWD}/tag-manifest.sh" + sed -i "s/\"..\"/https:\/\/android.googlesource.com\//g" out/R-LCR.xml + + # Publish + test -d ${HOME}/bin || mkdir ${HOME}/bin + wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py + PUB_DEST=/android/${JOB_NAME}/${RELEASE_TAG}-${BUILD_NUMBER} + time python ${HOME}/bin/linaro-cp.py \ + --api_version 3 \ + --manifest \ + --no-build-info \ + --link-latest \ + --split-job-owner \ + --server ${PUBLISH_SERVER} \ + out \ + ${PUB_DEST} \ + --include "^[^/]+[._](img[^/]*|tar[^/]*|xml|sh|config)$" + + echo "Build finished" + publishers: + - email: + recipients: 'vishal.bhoj@linaro.org fathi.boudra@linaro.org' |