Java + Gradle repository to learn Jenkins. Jenkins files are stored in folder _jenkinsfiles.
This is the used Jenkinsfile. Jenkins pipeline configuration should be:
- Definition: Pipeline script from SCM
- SCM: Git
- Repository URL: https://github.com/JTrillo/jenkins-exercises.git
- Branch Specifier: */main
- Script Path: _jenkinsfiles/exercise1/Jenkinsfile
This is the used Jenkinsfile. Jenkins pipeline configuration is almost the same than the previous, but Script Path now is _jenkinsfiles/exercise2/Jenkinsfile