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

Integrity Plugin does not work with parameterized builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • integrity-plugin
    • None
    • Ubuntu 12.04 LTS

      A parameterized build where the checkpoint is given as a text parameter
      the follwoing exception is thrown:
      FATAL: No such property: Release_Checkpoint for class: Script1
      groovy.lang.MissingPropertyException: No such property: Release_Checkpoint for class: Script1
      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
      at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
      at Script1.run(Script1.groovy:1)
      at groovy.lang.GroovyShell.evaluate(GroovyShell.java:580)
      at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618)
      at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589)
      at hudson.scm.IntegrityCheckpointAction.evalGroovyExpression(IntegrityCheckpointAction.java:86)
      at hudson.scm.IntegritySCM.buildEnvVars(IntegritySCM.java:536)
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:918)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:90)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
      at org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper.preCheckout(PreSCMBuildStepsWrapper.java:122)
      at jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:78)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:559)
      at hudson.model.Run.execute(Run.java:1670)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:231)

      The Project is configured as followed:
      #/_Projects/XYZ#ABC/ABCD/EFGH/CDE/UVW#$Release_Checkpoint

      where $Release_Checkpoint is the given paramter. Also the format ${Release_Checkpoint} does throw the exception.

      The only LogEntry is
      Feb 17, 2014 9:30:57 AM [DEBUG] IntegritySCM - buildEnvVars() invoked...!

            cdsouza Cletus D'Souza
            liepert Thorsten Liepert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: