Richard, that was the problem. There was an extra line feed stuffed into
the variable by accident.
Thanks!
Curtis
On Thu, Aug 10, 2017 at 5:16 AM, Richard Bywater wrote:
> Taking a look at the error, it appears like you have a line feed or
> carriage return at the end of the env.filename varia
Taking a look at the error, it appears like you have a line feed or
carriage return at the end of the env.filename variable (note the quote is
on the next line and not next to apk like I'd expect).
Richard.
On Thu, 10 Aug 2017 at 09:40 Curtis Kline wrote:
> The file exists in the current workin
Couple of thoughts:
- ${params.ReleaseNotes} doesn't look it got any value, then it might be
one of the root causes,
- if you use the -v flag, does it give you any details?
sh """
ls -l ${env.filename}
curl -v -F "status=2" -F "notify=1" -F "notes=${params.ReleaseNotes}" -F "
ipa=@${env.filena
The file exists in the current working directory. This is a three-stage
project with the agent declared at the global level. It's not running in a
Docker container, simply on a Linux node. As a test, I included a step
right before the one I mentioned:
ls -l ${env.filename}
The results
Does the file exist in what would be considered the current working
directory? Perhaps an ls before the curl to verify?
On Wed, Aug 9, 2017 at 2:13 PM Curtis Kline wrote:
> In my declarative pipeline Jenkinsfile, I have the following shell script
> line:
>
> sh """
> curl -F "status=2" -F "notif
In my declarative pipeline Jenkinsfile, I have the following shell script
line:
sh """
curl -F "status=2" -F "notify=1" -F "notes=${params.ReleaseNotes}" -F
"ipa=@${env.filename}" -H "X-HockeyAppToken: 1234"
https://rink.hockeyapp.net/api/2/apps/upload
"""
This does not work, because curl is appa