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

Pre and post steps/stage handling

    XMLWordPrintable

Details

    Description

      As discussed with abayer,

      • Pre steps to be exposed as synthetic stages
      • * Pre stage to have action to indicate they are pre stages
      • postBuild stage to have action to indicate its postBuild stage
      • Any Kyoto generated synthetic stage to have action to indicate it was generated by Kyoto

      This will enable BO to provide appropriate visualization of these stages.

      Attachments

        Issue Links

          Activity

            vivek Vivek Pandey created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer added a comment - Work-in-progress on PR up - https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/13
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "PR #13 (Web Link)" [ 14831 ]
            jamesdumay James Dumay made changes -
            Link This issue blocks JENKINS-38150 [ JENKINS-38150 ]
            abayer Andrew Bayer added a comment - New PR up at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/47
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "New PR - #47 (Web Link)" [ 15021 ]

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/b7c196b003815b1ad3153629bd928c5abb662d2e
            Log:
            Run empty stages for conditionally-skipped stages.

            This is just a band-aid until JENKINS-38153 lands with a better
            solution involving tags metadata and all that jazz, but this'll at
            least make sure our execution plan matches reality for now.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/b7c196b003815b1ad3153629bd928c5abb662d2e Log: Run empty stages for conditionally-skipped stages. This is just a band-aid until JENKINS-38153 lands with a better solution involving tags metadata and all that jazz, but this'll at least make sure our execution plan matches reality for now.
            abayer Andrew Bayer made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            pipeline-model-api/pom.xml
            pipeline-model-declarative-agent/pom.xml
            pipeline-model-definition/pom.xml
            pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/SyntheticStage.groovy
            pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy
            pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy
            pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineScript.groovy
            pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/BasicModelDefTest.java
            pipeline-model-definition/src/test/resources/noToolSyntheticStage.groovy
            pipeline-model-definition/src/test/resources/syntheticStages.groovy
            pom.xml
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/f88d2ccd2b235030a604d7e6a6f9a4cb2f1b4f99
            Log:
            [FIXED JENKINS-38153] Added synthetic stages using TagsAction.

            This is downstream of https://github.com/jenkinsci/workflow-api-plugin/pull/24

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pipeline-model-api/pom.xml pipeline-model-declarative-agent/pom.xml pipeline-model-definition/pom.xml pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/SyntheticStage.groovy pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineScript.groovy pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/BasicModelDefTest.java pipeline-model-definition/src/test/resources/noToolSyntheticStage.groovy pipeline-model-definition/src/test/resources/syntheticStages.groovy pom.xml http://jenkins-ci.org/commit/pipeline-model-definition-plugin/f88d2ccd2b235030a604d7e6a6f9a4cb2f1b4f99 Log: [FIXED JENKINS-38153] Added synthetic stages using TagsAction. This is downstream of https://github.com/jenkinsci/workflow-api-plugin/pull/24
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-1442 (Web Link)" [ 18692 ]
            bitwiseman Liam Newman added a comment -

            Bulk closing resolved issues.

            bitwiseman Liam Newman added a comment - Bulk closing resolved issues.
            bitwiseman Liam Newman made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              abayer Andrew Bayer
              vivek Vivek Pandey
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: