jenkins-infra / helpdesk

Open your Infrastructure related issues here for the Jenkins project
https://github.com/jenkins-infra/helpdesk/issues/new/choose
17 stars 10 forks source link

[INFRA-2057] Set credentials for dockerhub in CI for Jenkinsfile Runner #1703

Closed jenkins-infra-bot closed 5 years ago

jenkins-infra-bot commented 5 years ago

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
  • assignee: olblak
  • status: Closed
  • priority: Major
  • resolution: Fixed
  • resolved: 2019-03-26T14:49:10+01:00
  • imported: 2022/01/10
jenkins-infra-bot commented 5 years ago

olblak:

Indeed that credentials is set in packaging folder https://ci.jenkins.io/job/Packaging/credentials/store/folder/domain/_/credential/jenkins-dockerhub/

jenkins-infra-bot commented 5 years ago

fcojfernandez:

Sorry Olivier Vernin but I have no access to that URL. If the credentials are configured, any update about why is that error happening?

jenkins-infra-bot commented 5 years ago

olblak:

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

jenkins-infra-bot commented 5 years ago

fcojfernandez:

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.

jenkins-infra-bot commented 5 years ago

fcojfernandez:

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

Full log here

jenkins-infra-bot commented 5 years ago

olblak:

https://ci.jenkins.io/job/Tools/job/jenkinsfile-runner/job/PR-99/24/

jenkins-infra-bot commented 5 years ago

fcojfernandez:

Great! Thanks Olivier Vernin

jenkins-infra-bot commented 2 years ago

[Originally blocks: JENKINS-56632]

jenkins-infra-bot commented 2 years ago

[Originally blocks: JENKINS-55642]