Details
-
Improvement
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Not A Defect
-
None
Description
When trying to push a Docker image, it is possible to provide an non-existant credentialsId to withRegistry. However, there is no warning in the Pipeline script definition, only at runtime. And Docker says that authentication is required when in fact it is just because the provided credentials doesn't exist on the instance.
Not sure where you were expecting a non-runtime warning to appear, exactly, without solving the Halting Problem.
If there is a runtime warning, of course it ought to say that the credentials are invalid if they were supplied, but any failure to do so is likely a bug in the Docker client, not this plugin.