aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odp-api-check.yaml11
-rw-r--r--trigger-build-odp-api-next.yaml40
-rw-r--r--trigger-build-odp-next.yaml40
-rw-r--r--trigger-build-odp.yaml2
4 files changed, 85 insertions, 8 deletions
diff --git a/odp-api-check.yaml b/odp-api-check.yaml
index 0f33f13f1b..e46883bd9c 100644
--- a/odp-api-check.yaml
+++ b/odp-api-check.yaml
@@ -17,6 +17,10 @@
- build-discarder:
num-to-keep: 30
days-to-keep: 30
+ parameters:
+ - string:
+ name: GIT_BRANCH
+ default: 'master'
disabled: false
node: master
child-workspace: .
@@ -34,13 +38,6 @@
- arm64
- arm64be
- axis:
- type: user-defined
- name: GIT_BRANCH
- values:
- - master
- - next
- - api-next
- - axis:
type: slave
name: label
values:
diff --git a/trigger-build-odp-api-next.yaml b/trigger-build-odp-api-next.yaml
new file mode 100644
index 0000000000..721dfcbb9b
--- /dev/null
+++ b/trigger-build-odp-api-next.yaml
@@ -0,0 +1,40 @@
+- job:
+ name: trigger-build-odp-api-next
+ project-type: freestyle
+ defaults: global
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 30
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ parameters:
+ - string:
+ name: GIT_BRANCH
+ default: 'api-next'
+ disabled: false
+ node: build
+ display-name: 'Trigger for ODPs api-next'
+ scm:
+ - git:
+ url: https://git.linaro.org/lng/odp.git
+ refspec: +refs/heads/${GIT_BRANCH}:refs/remotes/origin/${GIT_BRANCH}
+ name: origin
+ branches:
+ - refs/heads/${GIT_BRANCH}
+ basedir: odp
+ skip-tag: true
+ shallow-clone: true
+ wipe-workspace: false
+ triggers:
+ - pollscm: 'H/5 * * * *'
+ wrappers:
+ - timestamps
+ - build-name:
+ name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
+ publishers:
+ - trigger-parameterized-builds:
+ - project: 'odp-api-check'
+ predefined-parameters: GIT_BRANCH=${GIT_BRANCH}
+ condition: SUCCESS
diff --git a/trigger-build-odp-next.yaml b/trigger-build-odp-next.yaml
new file mode 100644
index 0000000000..7bd778a3fe
--- /dev/null
+++ b/trigger-build-odp-next.yaml
@@ -0,0 +1,40 @@
+- job:
+ name: trigger-build-odp-api-next
+ project-type: freestyle
+ defaults: global
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 30
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ parameters:
+ - string:
+ name: GIT_BRANCH
+ default: 'next'
+ disabled: false
+ node: build
+ display-name: 'Trigger for ODPs next'
+ scm:
+ - git:
+ url: https://git.linaro.org/lng/odp.git
+ refspec: +refs/heads/${GIT_BRANCH}:refs/remotes/origin/${GIT_BRANCH}
+ name: origin
+ branches:
+ - refs/heads/${GIT_BRANCH}
+ basedir: odp
+ skip-tag: true
+ shallow-clone: true
+ wipe-workspace: false
+ triggers:
+ - pollscm: 'H/5 * * * *'
+ wrappers:
+ - timestamps
+ - build-name:
+ name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
+ publishers:
+ - trigger-parameterized-builds:
+ - project: 'odp-api-check'
+ predefined-parameters: GIT_BRANCH=${GIT_BRANCH}
+ condition: SUCCESS
diff --git a/trigger-build-odp.yaml b/trigger-build-odp.yaml
index 84510dc6c6..591cc5bcc0 100644
--- a/trigger-build-odp.yaml
+++ b/trigger-build-odp.yaml
@@ -31,4 +31,4 @@
name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
builders:
- trigger-builds:
- - project: 'build-odp-deb, build-odp-rpm, openembedded-odp-rootfs, odp-debian-validation'
+ - project: 'build-odp-deb, build-odp-rpm, openembedded-odp-rootfs, odp-debian-validation odp-api-check'