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

Adding any post-build step as a build step causes exception

    XMLWordPrintable

Details

    Description

      When attempting to add a post build step as a build step, then click save, an exception is thrown. Stack trace attached.

      Attachments

        1. screenshot.jpg
          139 kB
          Anthony Hartwig
        2. Single step.jpg
          101 kB
          Anthony Hartwig
        3. stacktrace.txt
          6 kB
          Anthony Hartwig

        Activity

          Anthony,
          sorry - I'm really trying to help you, but you have to answer my questions - otherwise I'll give up...
          What is your correct Jenkins version?
          Because if you do not have installed the m2-extra-steps plugin (https://wiki.jenkins-ci.org/display/JENKINS/M2+Extra+Steps+Plugin) then your configuration would not be possible with the Jenkins version your telling us...
          Maybe a screenshot with some more context around your single step would help too...

          domi Dominik Bartholdi added a comment - Anthony, sorry - I'm really trying to help you, but you have to answer my questions - otherwise I'll give up... What is your correct Jenkins version? Because if you do not have installed the m2-extra-steps plugin ( https://wiki.jenkins-ci.org/display/JENKINS/M2+Extra+Steps+Plugin ) then your configuration would not be possible with the Jenkins version your telling us... Maybe a screenshot with some more context around your single step would help too...

          Domi,

          My correct Jenkins version is as I stated before, 1.424.6.
          I attempted installing the m2-extra-steps plugin and was still receiving the null pointer with the multiple steps.
          I've attached the single step as requested.

          ahartwig Anthony Hartwig added a comment - Domi, My correct Jenkins version is as I stated before, 1.424.6. I attempted installing the m2-extra-steps plugin and was still receiving the null pointer with the multiple steps. I've attached the single step as requested.

          Anthony,
          I'm looking into the code and I'm still stuck, the main question which you still have not answered is:

          how do you add a 'post build step'? which section? which button? ...
          in the version you mention, this just does not exist!

          btw. Maven or FreeStyle Job?
          so where/how do you add such a post build action? please be more precise and as requested before, add screenshots which explain the whole configuration not just a snippet.

          domi Dominik Bartholdi added a comment - Anthony, I'm looking into the code and I'm still stuck, the main question which you still have not answered is: how do you add a 'post build step'? which section? which button? ... in the version you mention, this just does not exist! btw. Maven or FreeStyle Job? so where/how do you add such a post build action? please be more precise and as requested before, add screenshots which explain the whole configuration not just a snippet.

          Code changed in jenkins
          User: imod
          Path:
          src/main/java/org/jenkinsci/plugins/conditionalbuildstep/ConditionalBuilder.java
          http://jenkins-ci.org/commit/conditional-buildstep-plugin/a13c4d9bc48e48557a76c379560ad9751af15b1d
          Log:
          [FIXED JENKINS-13112] Adding any post-build step as a build step causes exception

          Compare: https://github.com/jenkinsci/conditional-buildstep-plugin/compare/0c533f8...a13c4d9

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/org/jenkinsci/plugins/conditionalbuildstep/ConditionalBuilder.java http://jenkins-ci.org/commit/conditional-buildstep-plugin/a13c4d9bc48e48557a76c379560ad9751af15b1d Log: [FIXED JENKINS-13112] Adding any post-build step as a build step causes exception Compare: https://github.com/jenkinsci/conditional-buildstep-plugin/compare/0c533f8...a13c4d9
          domi Dominik Bartholdi added a comment - - edited

          I think I finally figured you'r usecase - if it does not work, please open the issue again...

          domi Dominik Bartholdi added a comment - - edited I think I finally figured you'r usecase - if it does not work, please open the issue again...

          People

            domi Dominik Bartholdi
            ahartwig Anthony Hartwig
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: