August 2017
Intermediate to advanced
332 pages
9h 16m
English
We can create a new pipeline called calculator and, as Pipeline script, put the code with a stage called Checkout:
pipeline { agent any stages { stage("Checkout") { steps { git url: 'https://github.com/leszko/calculator.git' } } }}
The pipeline can be executed on any of the agents, and its only step does nothing more than downloading code from the repository. We can click on Build Now and see if it was executed successfully.
When we have the checkout, we're ready for the second stage.
Read now
Unlock full access