Skip to content

devops-ws/learn-pipeline-java

Repository files navigation

This project is aim to provide an easy way to try Jenkins pipeline.

According to different use cases, we provide several Jenkinsfile for you:

File Requirement Description
Jenkinsfile-parameters.groovy No particular things are required. A demo about how to use parameters in Jenkinsfile pipeline.
Jenkinsfile-junit-k8s It requires an agent which has a label maven. The agent should be a pod which contains a container named java. Generate junit report.
Jenkinsfile-input Any types of agent. Require a user to input something, then the Pipeline will keep going.
Jenkinsfile.jmeter.groovy A kubernetes environment Running a JMeter test in Jenkins
Jenkinsfile-milestone.groovy None Abort running build if new one is started
See also https://jenkins-zh.cn/about/course/#1

Jar

You can run it via the following:

mvn package
java -jar target/demo-junit-1.0.1-20170422.jar

War