Skip to main content

Jenkinsサーバの設定

JHipster用にJenkinsサーバを設定するには、次のガイドを参照してください。

# Jenkinsの設定

JenkinsでJHipsterプロジェクトを設定するには、次の設定を使用します。

Mavenの場合:

* Project name: `yourApplicationName`
* Source Code Management
* Git Repository: `[email protected]:xxxx/yourApplicationName.git`
* Branches to build: `*/main`
* Additional Behaviours: `Wipe out repository & force clone`
* Build Triggers
* Poll SCM / Schedule: `H/5 * * * *`
* Build<% if (buildTool == 'maven') { %>
* Invoke Maven / Tasks: `-Pprod clean package`
* Execute Shell / Command:
mvn spring-boot:run &
bootPid=$!
sleep 30s
gulp itest
kill $bootPid
* Post-build Actions
* Publish JUnit test result report / Test Report XMLs: `build/test-results/*.xml`

Gradleの場合:

* Project name: `yourApplicationName`
* Source Code Management
* Git Repository: `[email protected]:xxxx/yourApplicationName.git`
* Branches to build: `*/main`
* Additional Behaviours: `Wipe out repository & force clone`
* Build Triggers
* Poll SCM / Schedule: `H/5 * * * *`
* Build
* Invoke Gradle script / Use Gradle Wrapper / Tasks: `-Pprod clean test bootWar`
* Execute Shell / Command:
./gradlew bootRun &
bootPid=$!
sleep 30s
gulp itest
kill $bootPid
* Post-build Actions
* Publish JUnit test result report / Test Report XMLs: `build/test-results/*.xml`