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

      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

          [JENKINS-21734] When a job is copied, the aliases as copied over and corrupt the new job

          I believe aliases should not be copied with job.

          Oliver Gondža added a comment - I believe aliases should not be copied with job.

          I agree

          Patrice Matignon added a comment - I agree

          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

          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

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

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

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

              Created:
              Updated:
              Resolved: