diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..5b5923bc --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,34 @@ +pipeline{ + + agent any + + stages{ + stage("one"){ + steps{ + echo 'step 1' + sleep 3 + } + } + + stage("two"){ + steps{ + echo 'step 2' + sleep 9 + } + + } + stage("three"){ + steps{ + echo 'step 3' + sleep 5 + } + } + + } + + post{ + always{ + echo 'This pipeline is completed' + } + } +} diff --git a/worker/README.md b/worker/README.md index 834be372..fe3a3653 100644 --- a/worker/README.md +++ b/worker/README.md @@ -3,3 +3,7 @@ [![Build Status](http://35.197.102.152:8080/buildStatus/icon?job=job-01)](http://35.197.102.152:8080/job/job-01/) [![Build Status](http://35.197.102.152:8080/buildStatus/icon?job=job-02&subject=UnitTest)](http://35.197.102.152:8080/job/job-02/) + + + + diff --git a/worker/pom.xml b/worker/pom.xml index c0c97644..eb736545 100644 --- a/worker/pom.xml +++ b/worker/pom.xml @@ -1,3 +1,4 @@ + @@ -102,3 +103,5 @@ + +