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

java.lang.IllegalArgumentException: can not determine current context/parent for: XXXX/promotion of type class hudson.plugins.promoted_builds.JobPropertyImpl

      When add a config file provider step in a Promotion job always fail with
      java.lang.IllegalArgumentException: can not determine current context/parent for: xxx/promotion of type class hudson.plugins.promoted_builds.JobPropertyImpl
      at org.jenkinsci.plugins.configfiles.ConfigFiles.getByIdOrNull(ConfigFiles.java:92)
      at org.jenkinsci.plugins.configfiles.ConfigFiles.getByIdOrNull(ConfigFiles.java:107)
      at org.jenkinsci.plugins.configfiles.ConfigFiles.getByIdOrNull(ConfigFiles.java:118)
      at org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFileUtil.provisionConfigFiles(ManagedFileUtil.java:81)
      at org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep.perform(ConfigFileBuildStep.java:61)
      at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:405)
      at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:347)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1729)
      at hudson.model.Run.run(Run.java:1688)
      at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:286)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:404)

          [JENKINS-41049] java.lang.IllegalArgumentException: can not determine current context/parent for: XXXX/promotion of type class hudson.plugins.promoted_builds.JobPropertyImpl

          This error was introduced to prevent endless looping as it is caused by plugins like promotion, where no parent Item or ItemGroup can be discovered.

          Dominik Bartholdi added a comment - This error was introduced to prevent endless looping as it is caused by plugins like promotion, where no parent Item or ItemGroup can be discovered.

            domi Dominik Bartholdi
            sgabriel Samuel Gabriel
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: