ricogmacedo / jenkins-pipeline-tutorial

Jenkins Pipeline Tutorial sample project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jenkins-pipeline-tutorial

Jenkins Pipeline Tutorial sample project

Requirements

  • Java JDK 11
  • Maven >= 3.6

Building and Testing

  • Compile:
mvn compile
  • Run unit tests:
mvn test
  • Create jar:
mvn package

Deploying

There 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 the SUPER_CREDENTIALS environment variable (hint: look at the script's code). Usage is the same as deploy.sh.

About

Jenkins Pipeline Tutorial sample project


Languages

Language:Shell 78.6%Language:Java 21.4%