The problem was that it's not "PWD" but "PSW"...
On Thursday, April 6, 2017 at 6:26:00 PM UTC+3, Idan Adar wrote:
>
> In declarative pipeline, one can use credentials() instead
> of withCredentials, but I am not really sure how this works. In general,
> lots of examples are missing...
>
> Assumi
There's a missing ' below, just a copy/paste mistake. The error still
happens, and also with a different credential, the same one used for the
checkout... so I know 100% that the values in it are valid and working...
but it fails with that _PWD...
On Thursday, April 6, 2017 at 9:05:27 PM UTC+3,
The following resulted in an exception during runtime.
groovy.lang.MissingPropertyException: No such property: UP_PWD for class:
groovy.lang.Binding
at groovy.lang.Binding.getVariable(Binding.java:63)
at
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGet
FOO = credentials('id') will create environment variables FOO_USR and
FOO_PWD
On Apr 6, 2017 8:42 AM, "Idan Adar" wrote:
Perhaps Robert (CCed) can help?
On Thursday, April 6, 2017 at 6:26:00 PM UTC+3, Idan Adar wrote:
>
> In declarative pipeline, one can use credentials() instead
> of withCred
Perhaps Robert (CCed) can help?
On Thursday, April 6, 2017 at 6:26:00 PM UTC+3, Idan Adar wrote:
>
> In declarative pipeline, one can use credentials() instead
> of withCredentials, but I am not really sure how this works. In general,
> lots of examples are missing...
>
> Assuming I've created i
In declarative pipeline, one can use credentials() instead
of withCredentials, but I am not really sure how this works. In general,
lots of examples are missing...
Assuming I've created in Jenkins a credential for an access token, I can do
this:
stage ("Merge pull request") {
environment {