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

When conditions based on changelog

    XMLWordPrintable

    Details

    • Sprint:
      Declarative - 1.2
    • Similar Issues:

      Description

      Would be good to be able to run stages based on what is stated in the changelog.

      For example only run the UI testing stage if the change affects a .js or .html file

      Or if some statement is in the commit comment.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: rsandell
            Path:
            pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/when/impl/ChangeLogConditional.java
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/e6bdb1fe3cbeae3b96eef5850017497e8c4b4446
            Log:
            JENKINS-46064 removed unused import

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: rsandell Path: pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/when/impl/ChangeLogConditional.java http://jenkins-ci.org/commit/pipeline-model-definition-plugin/e6bdb1fe3cbeae3b96eef5850017497e8c4b4446 Log: JENKINS-46064 removed unused import
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: rsandell
            Path:
            pipeline-model-definition/pom.xml
            pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/when/impl/AbstractChangelogConditionalScript.groovy
            pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AbstractModelDefTest.java
            pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/WhenStageTest.java
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/465eea3f1e98bb859c58f8ed946e80941fdd517b
            Log:
            JENKINS-46064 Check the changelog of all builds when it is a PR

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: rsandell Path: pipeline-model-definition/pom.xml pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/when/impl/AbstractChangelogConditionalScript.groovy pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AbstractModelDefTest.java pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/WhenStageTest.java http://jenkins-ci.org/commit/pipeline-model-definition-plugin/465eea3f1e98bb859c58f8ed946e80941fdd517b Log: JENKINS-46064 Check the changelog of all builds when it is a PR
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: rsandell
            Path:
            pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/when/impl/ChangelogConditional.java
            pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/when/impl/ChangesetConditional.java
            pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/when/impl/ChangesetConditionalScript.groovy
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/e2d67cc959f7161698dcf90f4eb6dd101a2557fa
            Log:
            JENKINS-46064 Adapt to the new parser engine

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: rsandell Path: pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/when/impl/ChangelogConditional.java pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/when/impl/ChangesetConditional.java pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/when/impl/ChangesetConditionalScript.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/e2d67cc959f7161698dcf90f4eb6dd101a2557fa Log: JENKINS-46064 Adapt to the new parser engine
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: rsandell
            Path:
            pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/when/impl/ChangeLogConditional.java
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/6d88745e175bee51bce3f7dbdf292acbedc6d89c
            Log:
            JENKINS-46064 removed a todo that is done

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: rsandell Path: pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/when/impl/ChangeLogConditional.java http://jenkins-ci.org/commit/pipeline-model-definition-plugin/6d88745e175bee51bce3f7dbdf292acbedc6d89c Log: JENKINS-46064 removed a todo that is done
            Hide
            bitwiseman Liam Newman added a comment -

            rsandell We need documentation updates for this as well.
            I know it's a pain, but since there is no single program manager responsible for organizing Pipeline features, it becomes everyone's responsibility.
            Please make sure there is JIRA for this and preferably put creating at least the first draft of those changes on your plate.

            Thanks!

            Show
            bitwiseman Liam Newman added a comment - rsandell We need documentation updates for this as well. I know it's a pain, but since there is no single program manager responsible for organizing Pipeline features, it becomes everyone's responsibility. Please make sure there is JIRA for this and preferably put creating at least the first draft of those changes on your plate. Thanks!

              People

              • Assignee:
                rsandell rsandell
                Reporter:
                rsandell rsandell
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: