summaryrefslogtreecommitdiffstats
path: root/jjb/vnfrqts/build-and-upload.yaml
blob: 103c472189f3d65becc06c8d24a06705617aff0e (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
65
66
67
68
69
---
- job-template:
    # Job template for running a script to build an artifact and
    # upload it to nexus as RAW artifacts.
    #

    name: "{project-name}-{stream}-build-and-upload"

    pre_script: ""
    post_script: ""
    artifact_name: ""
    project_id: ""

    project-type: freestyle
    concurrent: true
    node: ubuntu1804-docker-8c-8g

    properties:
      - infra-properties:
          build-days-to-keep: "{build-days-to-keep}"

    parameters:
      - infra-parameters:
          project: "{project}"
          branch: "{branch}"
          refspec: "refs/heads/{branch}"
          artifacts: "{archive-artifacts}"

    scm:
      - git:
          credentials-id: "{jenkins-ssh-credential}"
          url: "$GIT_BASE"
          refspec: ""
          choosing-strategy: "default"
          branches:
            - "refs/heads/{branch}"
          skip-tag: true
          wipe-workspace: true
          submodule:
            recursive: "{submodule-recursive}"
            timeout: "24"

    wrappers:
      - infra-wrappers:
          build-timeout: "{build-timeout}"

    triggers:
      - timed: "H H * * *"
      - gerrit-trigger-release-manually:
          server: "{server-name}"
          project: "{project}"
          branch: "{branch}"

    builders:
      - lf-provide-maven-settings:
          global-settings-file: "{mvn-global-settings}"
          settings-file: "{mvn-settings}"
      - shell: "{obj:pre_script}"
      - lf-infra-create-netrc:
          server-id: ecomp-raw
      - inject:
          properties-content: |
            ARTIFACT_NAME={artifact_name}
            PROJECT_ID={project_id}
      - shell: "{obj:post_script}"
      - lf-provide-maven-settings-cleanup

    publishers:
      - lf-infra-publish