I have a pipeline stage that does the following:
* login to ECR (via groovy script in pipeline library)
* docker build (via groovy script in pipeline library)
* docker push to ECR (via groovy script in pipeline library)
The problem I'm seeing is that any of these steps can run on a different
executor (in the same slave) from the other steps. This results in a docker
push failing on one executor because the login to ECR happened in another
executor.
1. Is there a better pattern/practice I should be using?
2. Is there a way to force jenkins to use the same executor for all these
steps?
Thanks!
--
Sent from:
http://jenkins-ci.361315.n4.nabble.com/Jenkins-users-f361316.html