Merge "Standardize "release" wording"
[releng/global-jjb.git] / docs / jjb / lf-release-jobs.rst
1 .. _lf-global-jjb-release:
2
3 ####################
4 Releng Release Files
5 ####################
6
7 Projects can create a releases directory and then place a release file in it.
8 Jenkins will pick this up and then promote the artifact from the staging log
9 directory (log_dir) and tag the release with the defined version.
10 if a maven_central_url is given artifact will be pushed there as well.
11
12 example of a projects release file
13
14 .. code-block:: bash
15
16     $ cat releases/1.0.0.yaml
17     ---
18     distribution_type: 'maven'
19     version: '1.0.0'
20     project: 'zzz-test-release'
21     log_dir: 'zzz-test-release-maven-stage-master/17/'
22     maven_central_url: 'oss.sonatype.org'
23
24 lftools nexus release is used so there must be a lftoolsini section in jenkins
25 configfiles with a [nexus] section for auth.
26
27 Macros
28 ======
29
30 lf-release
31 ----------
32
33 Release verify and merge jobs are the same except for their scm, trigger, and
34 builders definition. This anchor is the common template.
35
36 Job Templates
37 =============
38
39 Release Merge
40 -------------
41
42 Runs:
43
44 - sigul-install
45 - sigul-configuration
46 - checkout ref from taglist.log
47 - applies the $PROJECT.bundle
48 - signs, tags and pushes
49
50 .. code-block:: bash
51
52    lftools nexus release --server $NEXUS_URL $STAGING_REPO
53
54
55 :Template Name:
56     - {project-name}-release-merge-{stream}
57
58 :Comment Trigger: remerge
59
60 :Required parameters:
61
62     :build-node: The node to run build on.
63     :jenkins-ssh-credential: Credential to use for SSH. (Generally set
64         in defaults.yaml)
65     :stream: run this job against: master
66
67 :Optional parameters:
68
69     :branch: Git branch to fetch for the build. (default: master)
70     :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
71     :build-timeout: Timeout in minutes before aborting build. (default: 15)
72     :project-pattern: Project to trigger build against. (default: \*\*)
73
74     :gerrit_merge_triggers: Override Gerrit Triggers.
75     :gerrit_trigger_file_paths: Override file paths filter which checks which
76         file modifications will trigger a build.
77         **default**::
78
79             - compare-type: ANT
80               pattern: 'releases/*.yaml'
81
82
83 Release Verify
84 ------------------
85
86 Release verify job checks the schema and ensures that the staging-repo.txt.gz
87 is available on the job.
88
89 - sigul-install
90 - sigul-configuration
91 - checkout ref from taglist.log
92 - applies the $PROJECT.bundle
93 - signs and shows signature
94
95
96 :Template Names:
97     - {project-name}-release-verify-{stream}
98
99 :Comment Trigger: recheck|reverify
100
101 :Required Parameters:
102
103     :build-node: The node to run build on.
104     :jenkins-ssh-credential: Credential to use for SSH. (Generally set
105         in defaults.yaml)
106     :stream: run this job against: master
107
108 :Optional Parameters:
109
110     :branch: Git branch to fetch for the build. (default: master)
111     :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
112     :build-node: The node to run build on.
113     :build-timeout: Timeout in minutes before aborting build. (default: 15)
114     :doc-dir: Directory where tox will place built docs.
115         as defined in the tox.ini (default: docs/_build/html)
116     :gerrit-skip-vote: Skip voting for this job. (default: false)
117     :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
118     :project-pattern: Project to trigger build against. (default: \*\*)
119
120     :gerrit_verify_triggers: Override Gerrit Triggers.
121     :gerrit_trigger_file_paths: Override file paths filter which checks which
122         file modifications will trigger a build.
123         **default**::
124
125             - compare-type: ANT
126               pattern: 'releases/*.yaml'