diff options
| -rw-r--r-- | .gitlab-ci.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3a17ea9..aa354bc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
| @@ -2,6 +2,7 @@ stages: | |||
| 2 | - docker | 2 | - docker |
| 3 | - checkout | 3 | - checkout |
| 4 | - test | 4 | - test |
| 5 | - trigger | ||
| 5 | 6 | ||
| 6 | variables: | 7 | variables: |
| 7 | BITBAKE_IMAGE: ${CI_REGISTRY_IMAGE}:ci-master-bitbake | 8 | BITBAKE_IMAGE: ${CI_REGISTRY_IMAGE}:ci-master-bitbake |
| @@ -109,3 +110,14 @@ Ptest qemux86_64: | |||
| 109 | only: | 110 | only: |
| 110 | variables: | 111 | variables: |
| 111 | - $OE_PTEST | 112 | - $OE_PTEST |
| 113 | |||
| 114 | # -- otf | ||
| 115 | |||
| 116 | trigger-otf-on-pr: | ||
| 117 | stage: trigger | ||
| 118 | when: always | ||
| 119 | except: | ||
| 120 | - pushes | ||
| 121 | script: | ||
| 122 | - apk add --no-cache curl | ||
| 123 | - curl -X POST -F "token=$CI_JOB_TOKEN" -F "ref=master" -F "variables[BITBAKE_JOB_ONLY]=true" -F "variables[BITBAKE_ENV]=zeus" -F "variables[PROJECT_NAME]=meta-updater" -F "variables[PROJECT_SHA]=$CI_COMMIT_SHA" https://main.gitlab.in.here.com/api/v4/projects/163/trigger/pipeline | ||
