Skip to content

Commit

Permalink
Problem with @field variable assignment on ZD&T
Browse files Browse the repository at this point in the history
* Add @groovy.transform.BaseScript com.ibm.dbb.groovy.ScriptLoader baseScript

A must for with the usage of DBB Build Manager

groovy.lang.MissingPropertyException: No such property: args for class: PackageBuildOutputs
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53)
	at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:52)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:307)
	at PackageBuildOutputs.<init>(PackageBuildOutputs.groovy:49)
	at java.lang.J9VMInternals.newInstanceImpl(Native Method)
	at java.lang.Class.newInstance(Class.java:1852)
	at com.ibm.dbb.build.ext.buildprocess.GroovyBuildProcess.loadScript(GroovyBuildProcess.java:105)
	at com.ibm.dbb.build.ext.buildprocess.GroovyBuildProcess.runProcess(GroovyBuildProcess.java:80)
	at com.ibm.dbb.build.ext.buildprocess.AbstractBuildProcess.run(AbstractBuildProcess.java:55)
	at com.ibm.dbb.build.ext.buildprocess.GroovyBuildProcess.main(GroovyBuildProcess.java:117)
__RC=-100__

* Update PackageBuildOutputs.groovy

* Update PackageBuildOutputs.groovy

* Update PackageBuildOutputs.groovy
  • Loading branch information
jbyibm authored Feb 18, 2022
1 parent 2bdc924 commit d60fc8c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Pipeline/PackageBuildOutputs/PackageBuildOutputs.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@groovy.transform.BaseScript com.ibm.dbb.groovy.ScriptLoader baseScript
import java.io.File
import java.io.UnsupportedEncodingException
import java.security.MessageDigest
Expand Down Expand Up @@ -47,7 +48,8 @@ import groovy.cli.commons.*
************************************************************************************/

// start create & publish package
@Field Properties props = parseInput(args)
@Field Properties props = null
props = parseInput(args)

// Map of last level dataset qualifier to DBB CopyToFS CopyMode.
// TODO: Customize to your needs.
Expand Down Expand Up @@ -322,4 +324,4 @@ def parseInput(String[] cliArgs){
throw e
}
return props
}
}

0 comments on commit d60fc8c

Please sign in to comment.