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

When a job is copied, the aliases as copied over and corrupt the new job

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When a job with aliases is used as a copy for a new job, the build aliases are copied over to the new project.
      It might not fail immediately, but at the very least the job can't be reloaded from disk and it can't be found.
      Sample from system logs include:

      Failed Loading job XXXXXXXXXX (new job)
      java.lang.NullPointerException
      at java.util.Vector.addAll(Vector.java:880)
      at hudson.model.AbstractProject.createTransientActions(AbstractProject.java:756)
      at hudson.model.Project.createTransientActions(Project.java:213)
      at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:749)
      at hudson.model.AbstractProject.onLoad(AbstractProject.java:336)
      ....

      Feb 09, 2014 7:03:14 PM INFO jenkins.InitReactorRunner$1 onAttained
      Loaded all jobs

        Attachments

          Activity

          Hide
          olivergondza Oliver Gondža added a comment -

          I believe aliases should not be copied with job.

          Show
          olivergondza Oliver Gondža added a comment - I believe aliases should not be copied with job.
          Hide
          pmatignon Patrice Matignon added a comment -

          I agree

          Show
          pmatignon Patrice Matignon added a comment - I agree
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          src/main/java/org/jenkinsci/plugins/buildaliassetter/BuildAliasSetter.java
          src/test/java/org/jenkinsci/plugins/buildaliassetter/IntegrationTest.java
          http://jenkins-ci.org/commit/build-alias-setter-plugin/616aa104304c2a36f9804a513541af89ac8253da
          Log:
          [FIXED JENKINS-21734] When a job is copied, the aliases as copied over and corrupt the new job

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: src/main/java/org/jenkinsci/plugins/buildaliassetter/BuildAliasSetter.java src/test/java/org/jenkinsci/plugins/buildaliassetter/IntegrationTest.java http://jenkins-ci.org/commit/build-alias-setter-plugin/616aa104304c2a36f9804a513541af89ac8253da Log: [FIXED JENKINS-21734] When a job is copied, the aliases as copied over and corrupt the new job
          Hide
          olivergondza Oliver Gondža added a comment -

          I was not able to reproduce the exact stacktrace but aliases ware indeed copied. Fixed in 0.2

          Show
          olivergondza Oliver Gondža added a comment - I was not able to reproduce the exact stacktrace but aliases ware indeed copied. Fixed in 0.2

            People

            Assignee:
            olivergondza Oliver Gondža
            Reporter:
            pmatignon Patrice Matignon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: