Jenkins Pipeline Tutorial sample project
- Java JDK 11
- Maven >= 3.6
- Compile:
mvn compile- Run unit tests:
mvn test- Create jar:
mvn packageThere are two totally real deploy scripts:
deploy.sh: this script performs a simple deploy, just provide it with the artifact name and the version, like so:./deploy.sh jenkins-pipeline-tutorial 1.0.0-SNAPSHOT
super-deploy.sh: this script is a much better deploy (because it has SUPER in the name) and it requires some credentials, which you must provide using theSUPER_CREDENTIALSenvironment variable (hint: look at the script's code). Usage is the same asdeploy.sh.