Skip to content

Commit

Permalink
[JENKINS-44458] Make it (much) simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
andresrc committed May 24, 2017
1 parent a7571e5 commit eacc5e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -3,7 +3,7 @@ Changelog

### Unreleased

* Setup Wizard disabled by default when using `hpi:run`. To enable it use `-DenableWizard`.
* Setup Wizard disabled by default when using `hpi:run`. To enable it use `-Dhudson.Main.development=false`.

### 2.29

Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -155,7 +155,7 @@ or

By default, the setup wizard (Jenkins >= 2.0) is skipped when using `hpi:run`. If you want the wizard to be enabled just run:

mvn -DenableWizard hpi:run
mvn -Dhudson.Main.development=false hpi:run


## For maintainers
Expand Down
27 changes: 5 additions & 22 deletions pom.xml
Expand Up @@ -88,6 +88,8 @@
<!-- For jgit-scm-provider profile -->
<git.provider>git</git.provider>
<maven-scm.version>1.9.5</maven-scm.version>
<!-- To skip the wizard by default in hpi:run. It should not impact other goals. -->
<hudson.Main.development>true</hudson.Main.development>
</properties>

<prerequisites>
Expand Down Expand Up @@ -612,6 +614,9 @@
<showDeprecation>true</showDeprecation>
<contextPath>/jenkins</contextPath>
<!-- TODO specify ${java.level} when JENKINS-20679 implemented -->
<systemProperties>
<hudson.Main.development>true</hudson.Main.development>
</systemProperties>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -1339,27 +1344,5 @@
</plugins>
</build>
</profile>
<profile>
<id>disableWizard</id>
<activation>
<property>
<name>!enableWizard</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jenkins-ci.tools</groupId>
<artifactId>maven-hpi-plugin</artifactId>
<configuration>
<systemProperties>
<name>hudson.Main.development</name>
<value>true</value>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit eacc5e2

Please sign in to comment.