summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/jobs/release-new.yml
blob: 9938c4b90b57cc8296e57df7460eb73b87395892 (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
70
- job:
    name: release-new
    node: smoke7
    description: glusterfs release script
    project-type: freestyle

    scm:
    - glusterfs

    properties:
    - one-build-per-node

    parameters:
    - string:
        default: v3.10.0
        description: Refspec to "git checkout" as the release code snapshot. Typically
          a git annotated tag like "v3.10.0". Specifying a branch name will use the
          current HEAD of that branch.
        name: GERRIT_REFSPEC
    - string:
        default: 3.10.0
        description: Version name to be assigned to the release.
        name: RELEASE_VERSION
    - string:
        default: packaging@gluster.org,maintainers@gluster.org
        description: Mail addresses to send the announcement of the tarball too.
        name: ANNOUNCE_EMAIL
    - bool:
        default: true
        name: PUBLISH_ARCHIVES
        description: Publish archives to bits.gluster.org

    publishers:
    - archive:
        allow-empty: false
        artifacts: "*.tar.gz"
        default-excludes: true
        fingerprint: false
        only-if-success: true
    - archive:
        allow-empty: false
        artifacts: "*.sha512sum"
        default-excludes: true
        fingerprint: false
        only-if-success: true
    - email-ext:
        recipients: $ANNOUNCE_EMAIL
        subject: "glusterfs-${RELEASE_VERSION} released"
        body: |
            SRC: ${BUILD_URL}artifact/glusterfs-${ENV,var="RELEASE_VERSION"}.tar.gz
            HASH: ${BUILD_URL}artifact/glusterfs-${ENV,var="RELEASE_VERSION"}.sha512sum

            This release is made off jenkins-release-${BUILD_ID}
        save-output: true
        failure: false
        success: true

    builders:
    - shell: !include-raw: ../scripts/release.sh

    wrappers:
    - timeout:
        timeout: 30
        abort: true
        type: absolute
    - timestamps
    - credentials-binding:
      - file:
          credential-id: 0b53bb70-545a-445f-9664-228d9cc0e6e3
          variable: BITS_KEY