Closed jenkins-infra-bot closed 5 years ago
Indeed that credentials is set in packaging folder https://ci.jenkins.io/job/Packaging/credentials/store/folder/domain/_/credential/jenkins-dockerhub/
Sorry Olivier Vernin but I have no access to that URL. If the credentials are configured, any update about why is that error happening?
Francisco Fernández There is something wrong with the Jenkinsfile https://ci.jenkins.io/blue/organizations/jenkins/Tools%2Fjenkinsfile-runner/detail/PR-99/16/pipeline
Olivier Vernin do you mean this error?
WorkflowScript: 8: Unknown stage section "echo". Starting with version 0.5, steps in a stage must be in a steps block. @ line 8, column 9. [2019-03-22T14:02:37.462Z] stage('Build') { [2019-03-22T14:02:37.462Z] ^ [2019-03-22T14:02:37.462Z] [2019-03-22T14:02:37.462Z] WorkflowScript: 8: Multiple occurrences of the echo section @ line 8, column 9. [2019-03-22T14:02:37.462Z] stage('Build') { [2019-03-22T14:02:37.462Z] ^ [2019-03-22T14:02:37.462Z] [2019-03-22T14:02:37.462Z] WorkflowScript: 8: Unknown stage section "echo". Starting with version 0.5, steps in a stage must be in a steps block. @ line 8, column 9. [2019-03-22T14:02:37.462Z] stage('Build') { [2019-03-22T14:02:37.462Z] ^ [2019-03-22T14:02:37.462Z] [2019-03-22T14:02:37.462Z] WorkflowScript: 8: Multiple occurrences of the echo section @ line 8, column 9. [2019-03-22T14:02:37.462Z] stage('Build') { [2019-03-22T14:02:37.462Z] ^ [2019-03-22T14:02:37.462Z] [2019-03-22T14:02:37.462Z] WorkflowScript: 8: Unknown stage section "echo". Starting with version 0.5, steps in a stage must be in a steps block. @ line 8, column 9. [2019-03-22T14:02:37.462Z] stage('Build') { [2019-03-22T14:02:37.462Z] ^ [2019-03-22T14:02:37.462Z] [2019-03-22T14:02:37.462Z] WorkflowScript: 8: Nothing to execute within stage "Build" @ line 8, column 9. [2019-03-22T14:02:37.462Z] stage('Build') { [2019-03-22T14:02:37.462Z] ^
It's expected. It's the trace for a test that emulates a Jenkinsfile with a wrong syntax. The execution #16 has failed because something went wrong trying to remove the docker image built for the tests:
[2019-03-22T14:03:33.228Z] Error response from daemon: conflict: unable to delete f37b9ad78b8e (cannot be forced) - image is being used by running container 251d6f5ccf06
The error with the credentials appears in the next stage, so the cause of this issue hasn't been reached. I'll commit something to force a compilation again and see if the stage to publish in dockerhub is still failing because of the non-found credentials.
Olivier Vernin, it seems that the credentials can be found now, thanks. However, the access is denied
13:40:26 + docker push jenkins4eval/jenkinsfile-runner:PR-99 13:40:26 The push refers to repository [docker.io/jenkins4eval/jenkinsfile-runner] 13:40:26 e04ae72655b9: Preparing 13:40:26 cdf3ebb64ef9: Preparing 13:40:26 93221fa3786b: Preparing 13:40:26 9db8ae062144: Preparing 13:40:26 718f3b17c7eb: Preparing 13:40:26 60cdae5e63ae: Preparing 13:40:26 43f7bb4520fc: Preparing 13:40:26 5b7181c98fe4: Preparing 13:40:26 d97f26ef1623: Preparing 13:40:26 e87475e5811f: Preparing 13:40:26 51e6d0a07219: Preparing 13:40:26 ba57bc494b22: Preparing 13:40:26 3443d6cf0f1f: Preparing 13:40:26 f3a38968d075: Preparing 13:40:26 a327787b3c73: Preparing 13:40:26 5bb0785f2eee: Preparing 13:40:26 e87475e5811f: Waiting 13:40:26 51e6d0a07219: Waiting 13:40:26 ba57bc494b22: Waiting 13:40:26 5bb0785f2eee: Waiting 13:40:26 3443d6cf0f1f: Waiting 13:40:26 f3a38968d075: Waiting 13:40:26 a327787b3c73: Waiting 13:40:26 60cdae5e63ae: Waiting 13:40:26 43f7bb4520fc: Waiting 13:40:26 d97f26ef1623: Waiting 13:40:26 5b7181c98fe4: Waiting 13:40:26 denied: requested access to the resource is denied
Great! Thanks Olivier Vernin
[Originally blocks: JENKINS-56632]
[Originally blocks: JENKINS-55642]
As part of https://issues.jenkins-ci.org/browse/JENKINS-55642, I've opened https://github.com/jenkinsci/jenkinsfile-runner/pull/99.
The builder is failing with this error:
ERROR: Could not find credentials entry with ID 'jenkins-dockerhub'
so we need the credentials for dockerhub to be set up in this job
See the full log here: https://ci.jenkins.io/blue/organizations/jenkins/Tools%2Fjenkinsfile-runner/detail/PR-99/14/pipeline
Originally reported by fcojfernandez, imported from: Set credentials for dockerhub in CI for Jenkinsfile Runner