When you use Jenkins multibranch pipeline, the first stage is named by default Declarative: Checkout SCM
.
Is it possible to rename it? I know that it is possible to skip default checkout, but I do not want this - I just want to rename this default step.
Since noone posted a better solution, I just did it this way:
...
options {
skipDefaultCheckout(true)
}
stages {
stage('However I want to name a stage') {
steps {
checkout scm
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With