File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ def githubProject(options = {})
24
24
"" "<assignedNode>%{nodes}</assignedNode>
25
25
<canRoam>false</canRoam>" "" . gsub ( / / , '' )
26
26
27
+ def env ( name ) = "${ENV,var="#{ name } "}"
28
+
27
29
<<-EOX
28
30
<description>#{ CGI . escapeHTML ( description ) } </description>
29
31
<properties>
@@ -34,6 +36,9 @@ def githubProject(options = {})
34
36
</parameterDefinitions>
35
37
</hudson.model.ParametersDefinitionProperty>
36
38
</properties>
39
+ <org.jenkinsci.plugins.buildnamesetter.BuildNameSetter plugin="[email protected] ">
40
+ <template>[${BUILD_NUMBER}] of #{ env ( repoUser ) } /#{ env ( repoName ) } \# #{ env ( repoRef ) } </template>
41
+ </org.jenkinsci.plugins.buildnamesetter.BuildNameSetter>
37
42
#{ scmBlurb }
38
43
#{ restriction % { nodes : nodeRestriction } if nodeRestriction }
39
44
EOX
Original file line number Diff line number Diff line change 44
44
# nginx reverse proxy setup, in concert with JenkinsLocationConfiguration above
45
45
include_recipe 'scala-jenkins-infra::_master-init-proxy'
46
46
47
- %w( ssh-credentials cygpath job-dsl build-flow-plugin rebuild greenballs build-timeout copyartifact email-ext slack throttle-concurrents dashboard-view parameterized-trigger ) . each do |plugin |
47
+ %w( ssh-credentials build-name-setter cygpath job-dsl build-flow-plugin rebuild greenballs build-timeout copyartifact email-ext slack throttle-concurrents dashboard-view parameterized-trigger ) . each do |plugin |
48
48
plugin , version = plugin . split ( '=' ) # in case we decide to pin versions later
49
49
jenkins_plugin plugin
50
50
end
You can’t perform that action at this time.
0 commit comments