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

Flexible Publish no longer expands variables in multiconfiguration job

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      flexible-publish-plugin 0.15.1
      token-macro 1.10
    • Similar Issues:

      Description

      The latest version of flexible publish plugin can no expand variables in a multiconfiguration job.

      I get this error in the parent job:
      Exception caught evaluating condition: [org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Unrecognized macro 'profile' in '$profile'], action = [Fail the build]

      Downgrading to 0.14.1 of this plugin fixes the problem. Any version higher than 0.14.1 is broken.

      I'm attaching a config.xml to this ticket.

        Attachments

          Activity

          Hide
          ikedam ikedam added a comment -

          Reproduced in my environment.
          Looks a regression in 0.15.

          I'll prepare a new release to fix the issue soon.

          For now, any of following ways works as a workaround.

          A. Downgrade flexible-publish to 0.14.1 or ealier.
          B. Open "Advanced..." and select "Don't run" for "On evaluation failure"
          C. Check "Condition for Matrix Aggregation" and select "Never" for "Run on Parent?".

          Show
          ikedam ikedam added a comment - Reproduced in my environment. Looks a regression in 0.15. I'll prepare a new release to fix the issue soon. For now, any of following ways works as a workaround. A. Downgrade flexible-publish to 0.14.1 or ealier. B. Open "Advanced..." and select "Don't run" for "On evaluation failure" C. Check "Condition for Matrix Aggregation" and select "Never" for "Run on Parent?".
          Show
          ikedam ikedam added a comment - https://github.com/jenkinsci/flexible-publish-plugin/pull/14
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/test/java/org/jenkins_ci/plugins/flexible_publish/MatrixAggregationTest.java
          http://jenkins-ci.org/commit/flexible-publish-plugin/0dc77cfd866e4fc6162c17e8442fe906eea441a7
          Log:
          JENKINS-28585 Added a test to reproduce JENKINS-28585

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/test/java/org/jenkins_ci/plugins/flexible_publish/MatrixAggregationTest.java http://jenkins-ci.org/commit/flexible-publish-plugin/0dc77cfd866e4fc6162c17e8442fe906eea441a7 Log: JENKINS-28585 Added a test to reproduce JENKINS-28585
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/org/jenkins_ci/plugins/flexible_publish/ConditionalPublisher.java
          http://jenkins-ci.org/commit/flexible-publish-plugin/ab0a50453b112f04a0c3b5a0ce68e77aae0ffdf9
          Log:
          [FIXED JENKINS-28585] Skips aggregation processing if no publisher supports aggregation.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/org/jenkins_ci/plugins/flexible_publish/ConditionalPublisher.java http://jenkins-ci.org/commit/flexible-publish-plugin/ab0a50453b112f04a0c3b5a0ce68e77aae0ffdf9 Log: [FIXED JENKINS-28585] Skips aggregation processing if no publisher supports aggregation.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/org/jenkins_ci/plugins/flexible_publish/ConditionalPublisher.java
          src/test/java/org/jenkins_ci/plugins/flexible_publish/MatrixAggregationTest.java
          http://jenkins-ci.org/commit/flexible-publish-plugin/d487888d9793215ae18a87cae9700a9cff3fa0cc
          Log:
          Merge pull request #14 from ikedam/feature/JENKINS-28585_ErrorWithNonAggregatable

          JENKINS-28585 Skips aggregation processing if no publisher supports aggregation.

          Compare: https://github.com/jenkinsci/flexible-publish-plugin/compare/2419aefa645e...d487888d9793

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/org/jenkins_ci/plugins/flexible_publish/ConditionalPublisher.java src/test/java/org/jenkins_ci/plugins/flexible_publish/MatrixAggregationTest.java http://jenkins-ci.org/commit/flexible-publish-plugin/d487888d9793215ae18a87cae9700a9cff3fa0cc Log: Merge pull request #14 from ikedam/feature/ JENKINS-28585 _ErrorWithNonAggregatable JENKINS-28585 Skips aggregation processing if no publisher supports aggregation. Compare: https://github.com/jenkinsci/flexible-publish-plugin/compare/2419aefa645e...d487888d9793
          Hide
          ikedam ikedam added a comment -

          Released flexible-publish-0.15.2 fixing this issue.
          It will be available in a day.
          Please try that.

          Show
          ikedam ikedam added a comment - Released flexible-publish-0.15.2 fixing this issue. It will be available in a day. Please try that.

            People

            • Assignee:
              ikedam ikedam
              Reporter:
              grayaii Alex Gray
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: