summaryrefslogtreecommitdiff
path: root/yaml/ckons.local/deploy.yaml
blob: 5c814cac52ab43f522105066d5c557c3ec4ee7fc (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
---
- project:
    name: "deploy"
    jobs:
      - "{app}-deploy-{target}":
          app: "wro"
          node: "ansible"
          deploy_script: "deploy-target.sh"
          target: "sphinkpad"
          installer_url: "git@ns:repos/wro-installer.git"
      - "{app}-deploy-{target}":
          app: "wro"
          node: "ansible"
          deploy_script: "deploy-target.sh"
          target: "ns"
          installer_url: "git@ns:repos/wro-installer.git"

- job-template:
    name: "{app}-deploy-{target}"
    project-type: freestyle
    node: "{node}"
    properties:
      - build-discarder:
          num-to-keep: 1
          artifact-days-to-keep: 0
      - build-blocker:
          use-build-blocker: true
          blocking-jobs:
            - "docker-container.*"
          block_level: "GLOBAL"
          queue-scanning: "BUILDABLE"
    scm:
      - git:
          url: "{installer_url}"
          branches:
            - master
    builders:
      - shell: |
          ./{deploy_script} {target}