我正在尝试向其传播git TAG的下游工作。
build job:"test-job-web",
parameters: [
string(name: 'deployment_environment', value: tring.valueOf(${env.deployment_environment})),
gitParameter(name: 'github_tag_name', value: String.valueOf(${env.github_tag_name}))
]
根据https://www.jenkins.io/doc/pipeline/steps/pipeline-build-step/
我可以使用gitParameter
,但会引发异常
groovy.lang.MissingPropertyException: No such property: TAG for class: groovy.lang.Binding
at groovy.lang.Binding.getVariable(Binding.java:63)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:270)
at org.kohsuke.groovy.sandbox.impl.Checker$6.call(Checker.java:291)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:295)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:271)