-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins: 2.289.2
OS: Linux - 3.10.0-1062.9.1.el7.x86_64
---
ace-editor:1.1
apache-httpcomponents-client-4-api:4.5.13-1.0
authentication-tokens:1.4
blueocean-autofavorite:1.2.4
blueocean-bitbucket-pipeline:1.24.7
blueocean-commons:1.24.7
blueocean-config:1.24.7
blueocean-core-js:1.24.7
blueocean-dashboard:1.24.7
blueocean-display-url:2.4.1
blueocean-events:1.24.7
blueocean-git-pipeline:1.24.7
blueocean-github-pipeline:1.24.7
blueocean-i18n:1.24.7
blueocean-jwt:1.24.7
blueocean-personalization:1.24.7
blueocean-pipeline-api-impl:1.24.7
blueocean-pipeline-editor:1.24.7
blueocean-pipeline-scm-api:1.24.7
blueocean-rest-impl:1.24.7
blueocean-rest:1.24.7
blueocean-web:1.24.7
blueocean:1.24.7
bootstrap4-api:4.6.0-3
bootstrap5-api:5.0.1-2
bouncycastle-api:2.20
branch-api:2.6.4
build-timeout:1.20
caffeine-api:2.9.1-23.v51c4e2c879c8
cloudbees-bitbucket-branch-source:2.9.9
cloudbees-folder:6.15
command-launcher:1.6
configuration-as-code:1.51
conjur-credentials:1.0.2
credentials-binding:1.26
credentials:2.5
display-url-api:2.3.5
durable-task:1.37
echarts-api:5.1.2-2
favorite:2.3.3
font-awesome-api:5.15.3-3
git-client:3.7.2
git-server:1.9
git:4.7.2
github-api:1.123
github-branch-source:2.11.1
github:1.33.1
gitlab-plugin:1.5.20
handlebars:3.0.8
handy-uri-templates-2-api:2.1.8-1.0
htmlpublisher:1.25
http_request:1.9.0
checks-api:1.7.0
jackson2-api:2.12.3
jdk-tool:1.5
jenkins-design-language:1.24.7
jjwt-api:0.11.2-9.c8b45b8bb173
jquery-detached:1.2.1
jquery3-api:3.6.0-1
jsch:0.1.55.2
junit:1.51
lockable-resources:2.11
mailer:1.34
mask-passwords:3.0
matrix-project:1.19
momentjs:1.1.1
Office-365-Connector:4.15.0
okhttp-api:3.14.9
pipeline-build-step:2.13
pipeline-graph-analysis:1.11
pipeline-input-step:2.12
pipeline-milestone-step:1.3.2
pipeline-model-api:1.8.5
pipeline-model-definition:1.8.5
pipeline-model-extensions:1.8.5
pipeline-rest-api:2.19
pipeline-stage-step:2.5
pipeline-stage-tags-metadata:1.8.5
pipeline-stage-view:2.19
pipeline-utility-steps:2.8.0
plain-credentials:1.7
plugin-util-api:2.3.0
popper-api:1.16.1-2
popper2-api:2.5.4-2
prisma-cloud-jenkins-plugin:20.04.169
pubsub-light:1.16
resource-disposer:0.16
scm-api:2.6.4
script-security:1.77
simple-theme-plugin:0.6
snakeyaml-api:1.29.1
sse-gateway:1.24
ssh-credentials:1.19
sshd:3.0.3
structs:1.23
timestamper:1.13
token-macro:2.15
trilead-api:1.0.13
variant:1.4
workflow-aggregator:2.6
workflow-api:2.46
workflow-basic-steps:2.23
workflow-cps-global-lib:2.21
workflow-cps:2.92
workflow-durable-task-step:2.39
workflow-job:2.41
workflow-multibranch:2.26
workflow-scm-step:2.13
workflow-step-api:2.23
workflow-support:3.8
ws-cleanup:0.39Jenkins: 2.289.2 OS: Linux - 3.10.0-1062.9.1.el7.x86_64 --- ace-editor:1.1 apache-httpcomponents-client-4-api:4.5.13-1.0 authentication-tokens:1.4 blueocean-autofavorite:1.2.4 blueocean-bitbucket-pipeline:1.24.7 blueocean-commons:1.24.7 blueocean-config:1.24.7 blueocean-core-js:1.24.7 blueocean-dashboard:1.24.7 blueocean-display-url:2.4.1 blueocean-events:1.24.7 blueocean-git-pipeline:1.24.7 blueocean-github-pipeline:1.24.7 blueocean-i18n:1.24.7 blueocean-jwt:1.24.7 blueocean-personalization:1.24.7 blueocean-pipeline-api-impl:1.24.7 blueocean-pipeline-editor:1.24.7 blueocean-pipeline-scm-api:1.24.7 blueocean-rest-impl:1.24.7 blueocean-rest:1.24.7 blueocean-web:1.24.7 blueocean:1.24.7 bootstrap4-api:4.6.0-3 bootstrap5-api:5.0.1-2 bouncycastle-api:2.20 branch-api:2.6.4 build-timeout:1.20 caffeine-api:2.9.1-23.v51c4e2c879c8 cloudbees-bitbucket-branch-source:2.9.9 cloudbees-folder:6.15 command-launcher:1.6 configuration-as-code:1.51 conjur-credentials:1.0.2 credentials-binding:1.26 credentials:2.5 display-url-api:2.3.5 durable-task:1.37 echarts-api:5.1.2-2 favorite:2.3.3 font-awesome-api:5.15.3-3 git-client:3.7.2 git-server:1.9 git:4.7.2 github-api:1.123 github-branch-source:2.11.1 github:1.33.1 gitlab-plugin:1.5.20 handlebars:3.0.8 handy-uri-templates-2-api:2.1.8-1.0 htmlpublisher:1.25 http_request:1.9.0 checks-api:1.7.0 jackson2-api:2.12.3 jdk-tool:1.5 jenkins-design-language:1.24.7 jjwt-api:0.11.2-9.c8b45b8bb173 jquery-detached:1.2.1 jquery3-api:3.6.0-1 jsch:0.1.55.2 junit:1.51 lockable-resources:2.11 mailer:1.34 mask-passwords:3.0 matrix-project:1.19 momentjs:1.1.1 Office-365-Connector:4.15.0 okhttp-api:3.14.9 pipeline-build-step:2.13 pipeline-graph-analysis:1.11 pipeline-input-step:2.12 pipeline-milestone-step:1.3.2 pipeline-model-api:1.8.5 pipeline-model-definition:1.8.5 pipeline-model-extensions:1.8.5 pipeline-rest-api:2.19 pipeline-stage-step:2.5 pipeline-stage-tags-metadata:1.8.5 pipeline-stage-view:2.19 pipeline-utility-steps:2.8.0 plain-credentials:1.7 plugin-util-api:2.3.0 popper-api:1.16.1-2 popper2-api:2.5.4-2 prisma-cloud-jenkins-plugin:20.04.169 pubsub-light:1.16 resource-disposer:0.16 scm-api:2.6.4 script-security:1.77 simple-theme-plugin:0.6 snakeyaml-api:1.29.1 sse-gateway:1.24 ssh-credentials:1.19 sshd:3.0.3 structs:1.23 timestamper:1.13 token-macro:2.15 trilead-api:1.0.13 variant:1.4 workflow-aggregator:2.6 workflow-api:2.46 workflow-basic-steps:2.23 workflow-cps-global-lib:2.21 workflow-cps:2.92 workflow-durable-task-step:2.39 workflow-job:2.41 workflow-multibranch:2.26 workflow-scm-step:2.13 workflow-step-api:2.23 workflow-support:3.8 ws-cleanup:0.39
I am trying to pass a Jenkins Credentials ID to an "httpRequest" Jenkins step and it works flawlessly a for standard "Username with password" type. However if I use "Conjur Secret Username" type I am getting an error:
org.conjur.jenkins.exceptions.InvalidConjurSecretException: Unable to find credential at Global Instance Level
at org.conjur.jenkins.conjursecrets.ConjurSecretCredentials.credentialWithID(ConjurSecretCredentials.java:96)
at org.conjur.jenkins.conjursecrets.ConjurSecretCredentials.getSecretFromCredentialIDWithConfigAndContext(ConjurSecretCredentials.java:116)
at org.conjur.jenkins.conjursecrets.ConjurSecretUsernameCredentialsImpl.getPassword(ConjurSecretUsernameCredentialsImpl.java:114)
at jenkins.plugins.http_request.auth.CredentialBasicAuthentication.prepare(CredentialBasicAuthentication.java:63)
at jenkins.plugins.http_request.auth.CredentialBasicAuthentication.prepare(CredentialBasicAuthentication.java:58)
at jenkins.plugins.http_request.auth.CredentialBasicAuthentication.authenticate(CredentialBasicAuthentication.java:53)
at jenkins.plugins.http_request.HttpRequestExecution.auth(HttpRequestExecution.java:384)
at jenkins.plugins.http_request.HttpRequestExecution.authAndRequest(HttpRequestExecution.java:326)
at jenkins.plugins.http_request.HttpRequestExecution.call(HttpRequestExecution.java:260)
at jenkins.plugins.http_request.HttpRequestExecution.call(HttpRequestExecution.java:80)
at hudson.remoting.LocalChannel.call(LocalChannel.java:46)
at jenkins.plugins.http_request.HttpRequestStep$Execution.run(HttpRequestStep.java:380)
at jenkins.plugins.http_request.HttpRequestStep$Execution.run(HttpRequestStep.java:358)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
at hudson.security.ACL.impersonate2(ACL.java:449)
at hudson.security.ACL.impersonate(ACL.java:461)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE
If I first do a dummy "withCredentials" call and then the "httpRequest" it starts working. It keeps working even if I remove the dummy call, until I restart the Jenkins instance.
Please find a sample Jenkinsfile in the attachments.