Could you try the pipeline snippet in this comment?
https://issues.jenkins-ci.org/browse/JENKINS-44143?focusedCommentId=329510&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-329510
--
You received this message because you are subscribed to the Google Groups
"Jen
I am running my slaves on Ubuntu AMI's, that have docker pre-installed. I
am attempting to build a Docker Container on the slave from a DockerFile
and push it to a ECR Repo.
I am getting confused because this fails, but I am not seeing why it failed.
node('cicd_ec2') {
try {