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

Post-Build Step In Pipeline Config, Not In Jenkinsfile

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: pipeline
    • Labels:
      None
    • Similar Issues:

      Description

      *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.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              • Created:
                Updated: