summaryrefslogtreecommitdiff
path: root/wayland-build/wayland-build.jjb
blob: 2ff693a9c92d8a5e2016ded72e27b66a70d26043 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
- job-template:
    name: wayland/build/all
    defaults: global
    project-type: pipeline
    parameters:
      - string:
          name: STAMP
          default: latest
          description: 'Tag for Wayland build container image'
    properties:
      - inject:
          properties-content: |
            JOB_DEFINITION_GIT={job-definition-git}
            JOB_DEFINITION_GIT_BRANCH={job-definition-git-branch}
    pipeline:
      script: |
        node('docker') {{
          git(url: env.JOB_DEFINITION_GIT, branch: env.JOB_DEFINITION_GIT_BRANCH, poll: false)
          load "wayland-build/build-wayland.jpl"
        }}
      sandbox: false
       
- job-template:
    name: wayland/build/{platform}-{arch}
    defaults: global
    project-type: pipeline
    parameters:
      - string:
          name: STAMP
          default: latest
          description: 'Tag for base container image'
    properties:
      - inject:
          properties-content: |
            PLATFORM={platform}
            ARCH={arch}
            DOCKER_REGISTRY_URI_SCHEME={docker-registry-uri-scheme}
            DOCKER_REGISTRY={docker-registry}
            DOCKER_REGISTRY_CREDENTIALS={docker-registry-credentials}
            JOB_DEFINITION_GIT={job-definition-git}
            JOB_DEFINITION_GIT_BRANCH={job-definition-git-branch}
    pipeline:
      # If we run a pipeline definition directly from SCM, it's always
      # sandboxed, which means it can do ~nothing. Work around this by
      # loading the script manually.
      script: |
        node('docker') {{
          git(url: env.JOB_DEFINITION_GIT, branch: env.JOB_DEFINITION_GIT_BRANCH, poll: false)
          load "wayland-build/build-wayland.jpl"
        }}
      sandbox: false

- project:
    name: wayland/build
    defaults: base-image-axes
    jobs:
      - wayland/build/{platform}-{arch}
      - wayland/build/all

- defaults:
    !include base-images/base-image-axes.yaml

- defaults:
    !include: defaults.yaml