20

I have a declarative pipeline which looks like this:

pipeline {
    stages {...}
    post {
        success {...}
        failure {...}
    }
}

It leads to creation of a last step called "Declarative: Post Actions".

Q: How to rename the "Declarative: Post Actions" step?

I would like to have a meaningful name like "Send Email Notifications".

pipeline

UPDATE:

The names are hardcoded in this class. With the current version of the API (3.44) it is not possible to rename them.

Sasha Shpota
  • 9,436
  • 14
  • 75
  • 148

1 Answers1

1

Move post part into a stage. Stages has post section the same way as the whole pipeline has.

igor
  • 44
  • 1