Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to rename default "Declarative: Checkout SCM" step?

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.

like image 381
Basil Avatar asked Jul 05 '17 14:07

Basil


1 Answers

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
...
like image 96
Basil Avatar answered Sep 22 '22 10:09

Basil