Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56487

Post-Build Step In Pipeline Config, Not In Jenkinsfile

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline
    • None

      *Problem*

      Jenkins pipelines are a great way of allowing engineering teams to self service their CI needs. For example, every team can write their own `Jenkinsfile-release` in their own repos.

      Suppose we want to send a slack message to the `#release` channel every single time any team's `Jenkinsfile-release` succeeds. Today, we need to copy and paste the following snippet into every single repo's `Jenkinsfile-release`:

       

      ```

      {{ slackSend channel: '#release',
      color: 'good',
      message: "The ${params.repo} repo released."}}
      ```

       

      *Solution*

      Create a post-build-like phase that can be configured from inside the Jenkins UI. Then engineers can add post-build steps that globally apply to all Jenkinsfile's for a given pipeline.

            Unassigned Unassigned
            brianattwell Brian Attwell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: