aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2019-03-01 19:03:11 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2019-04-19 08:36:51 +0000
commit0a0164a16e2f7ddd34e9497334bb63bd5b292c84 (patch)
tree03b72d3ec9e4a79d2b115babda129c655111362c
parent0e97e740e28e459cfee7703eb213397dfcea2101 (diff)
lhg: opencdm-sanity-check lhg-optee-clearkey-cdmi-sanity-check: trigger lhg-oe-build
Change-Id: I780f56b0e07fb9ed75183ecf73f7048c5ca015c6 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rwxr-xr-xlhg-oe-build/builders.sh5
-rw-r--r--trigger-lhg-opencdm-sanity-check.yaml4
-rw-r--r--trigger-lhg-optee-clearkey-cdmi-sanity-check.yaml4
3 files changed, 13 insertions, 0 deletions
diff --git a/lhg-oe-build/builders.sh b/lhg-oe-build/builders.sh
index 33614dfd06..598586d867 100755
--- a/lhg-oe-build/builders.sh
+++ b/lhg-oe-build/builders.sh
@@ -51,6 +51,11 @@ if [ ! -e ".repo/manifest.xml" ]; then
ln -s ${HOME}/srv/oe/sstate-cache-${DISTRO}-${MANIFEST_BRANCH} sstate-cache
fi
+if [ "${ghprbPullId}" ]; then
+ echo "Applying Github pull-request #${ghprbPullId} from ${ghprbGhRepository}"
+ sed -i -e "s|name=\"${ghprbGhRepository}\"|name=\"${ghprbGhRepository}\" revision=\"refs/pull/${ghprbPullId}/head\"|" .repo/manifest.xml
+fi
+
repo sync
cp .repo/manifest.xml source-manifest.xml
repo manifest -r -o pinned-manifest.xml
diff --git a/trigger-lhg-opencdm-sanity-check.yaml b/trigger-lhg-opencdm-sanity-check.yaml
index e950af595e..4777c25d68 100644
--- a/trigger-lhg-opencdm-sanity-check.yaml
+++ b/trigger-lhg-opencdm-sanity-check.yaml
@@ -28,11 +28,15 @@
triggers:
- github-pull-request:
github-hooks: true
+ white-list-target-branches:
+ - 'chromium-53.0.2785.143'
permit-all: true
auth-id: 'GITHUB_TOKEN'
wrappers:
- timestamps
builders:
+ - trigger-builds:
+ - project: 'lhg-oe-build'
- shell: |
#!/bin/bash -e
echo "#${BUILD_NUMBER}-${ghprbActualCommit:0:8}" > ${WORKSPACE}/version.txt
diff --git a/trigger-lhg-optee-clearkey-cdmi-sanity-check.yaml b/trigger-lhg-optee-clearkey-cdmi-sanity-check.yaml
index ce3197fbe5..cc0361c1ba 100644
--- a/trigger-lhg-optee-clearkey-cdmi-sanity-check.yaml
+++ b/trigger-lhg-optee-clearkey-cdmi-sanity-check.yaml
@@ -28,11 +28,15 @@
triggers:
- github-pull-request:
github-hooks: true
+ white-list-target-branches:
+ - 'chromium-53.0.2785.143'
permit-all: true
auth-id: 'GITHUB_TOKEN'
wrappers:
- timestamps
builders:
+ - trigger-builds:
+ - project: 'lhg-oe-build'
- shell: |
#!/bin/bash -e
echo "#${BUILD_NUMBER}-${ghprbActualCommit:0:8}" > ${WORKSPACE}/version.txt