Skip to content

Commit

Permalink
Skip Jenkins wizard in server task
Browse files Browse the repository at this point in the history
Otherwise when running `gradle server` the first time with Jenkins 2.x,
the user has to follow manual setup steps in the browser.

That's also the default setting in plugin-pom:
- https://github.com/jenkinsci/plugin-pom/blob/plugin-3.32/pom.xml#L93-L94
- https://github.com/jenkinsci/plugin-pom/blob/plugin-3.32/pom.xml#L678-L680
  • Loading branch information
darxriggs authored and sghill committed Jan 30, 2019
1 parent 7b1cb35 commit bfcb36d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class ServerTask extends DefaultTask {
setSystemPropertyIfEmpty('stapler.trace', 'true')
setSystemPropertyIfEmpty('stapler.jelly.noCache', 'true')
setSystemPropertyIfEmpty('debug.YUI', 'true')
setSystemPropertyIfEmpty('hudson.Main.development', 'true')

List<String> args = []
String port = project.properties[HTTP_PORT] ?: System.properties[HTTP_PORT]
Expand Down

0 comments on commit bfcb36d

Please sign in to comment.