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

Error - Job Copy & Saving Configuration when using Ivy Trigger Plugin (v0.14)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • ivytrigger-plugin
    • <System Info attached with the ticket>
      Installed Jenkins using rpm

      We get error when we try to copy an existing job that has IvyTrigger configuration, and press save after performing build configuration (ie. changes to SVN URL, Build Section, etc) changes. Same behavior is observed when the source job (or the job being copied) is either a Free Style Project or Ivy Project.

      <Error Stack trace> - refer to attachment ErrorStackTrace for complete stack trace of this
      Status Code: 500
      Exception:
      Stacktrace:

      java.lang.NullPointerException
      at org.jenkinsci.plugins.ivytrigger.IvyTrigger.getContext(IvyTrigger.java:90)
      at org.jenkinsci.plugins.ivytrigger.IvyTrigger.getContext(IvyTrigger.java:30)
      at org.jenkinsci.lib.xtrigger.AbstractTriggerByFullContext.start(AbstractTriggerByFullContext.java:31)
      at org.jenkinsci.lib.xtrigger.AbstractTrigger.start(AbstractTrigger.java:78)
      at org.jenkinsci.lib.xtrigger.AbstractTrigger.start(AbstractTrigger.java:26)

      Work around what we have found is:
      1. Disable Ivy trigger plugin in the source job (ie. existing job)
      2. Copy the job (ie. while creating a new job using Copy Job functionality on Jenkins UI)
      3. Update all configurations and press Save.
      4. Update Ivy trigger configuration in the new job and press Save.
      5. Enable Ivy trigger configuration on the Source job and press Save.

      If you have any queries, please email me at soumen.trivedi@gmail.com

      Thanks & Regards
      Soumen Trivedi

          [JENKINS-12992] Error - Job Copy & Saving Configuration when using Ivy Trigger Plugin (v0.14)

          Thanks for your input

          Gregory Boissinot added a comment - Thanks for your input

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/lib/xtrigger/AbstractTrigger.java
          src/main/java/org/jenkinsci/lib/xtrigger/AbstractTriggerByFullContext.java
          http://jenkins-ci.org/commit/xtrigger-lib/3f82eb79f9fc2a68e51e552ec1c7df96555c61f7
          Log:
          Fix JENKINS-12992

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/lib/xtrigger/AbstractTrigger.java src/main/java/org/jenkinsci/lib/xtrigger/AbstractTriggerByFullContext.java http://jenkins-ci.org/commit/xtrigger-lib/3f82eb79f9fc2a68e51e552ec1c7df96555c61f7 Log: Fix JENKINS-12992

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          pom.xml
          http://jenkins-ci.org/commit/ivytrigger-plugin/083dfaa404c58837f014231f5162a2967fc1f72d
          Log:
          Fix JENKINS-12992

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: pom.xml http://jenkins-ci.org/commit/ivytrigger-plugin/083dfaa404c58837f014231f5162a2967fc1f72d Log: Fix JENKINS-12992

          Thanks alot for this fix and such a quick response. I have tested this new version now it works. thanks once again

          Soumen Trivedi added a comment - Thanks alot for this fix and such a quick response. I have tested this new version now it works. thanks once again

            gbois Gregory Boissinot
            soumen_trivedi Soumen Trivedi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: