Before you can build this project, you must install and configure the following dependencies on your machine:
To Build and Test:
./gradlew
To run via gradle:
./gradlew bootRun
To optimize the foo client for production, run:
./gradlew clean bootRepackage
To ensure everything worked, run:
java -jar build/libs/*.jar --spring.profiles.active=local
To build docker images which include the latest artifact
./gradlew dockerBuild
To setup this project in Jenkins, use the following configuration:
- Project name:
api-stencil - Source Code Management
- Git Repository:
https://github.com/zjx-immersion/api-stencil.git - Branches to build:
*/master - Additional Behaviours:
Wipe out repository & force clone
- Git Repository:
- Build Triggers
- Poll SCM / Schedule:
H/5 * * * *
- Poll SCM / Schedule:
- Build
- Invoke Gradle script / Use Gradle Wrapper / Tasks:
clean test bootRepackage
- Invoke Gradle script / Use Gradle Wrapper / Tasks:
- Post-build Actions
- Publish JUnit test result report / Test Report XMLs:
build/test-results/*.xml
- Publish JUnit test result report / Test Report XMLs: