-
Bug
-
Resolution: Unresolved
-
Minor
-
Jenkins: 2.516.3
OS: Linux - 6.8.0-58-generic
Java: 21.0.8 - Ubuntu (OpenJDK 64-Bit Server VM)
---
ant:518.v8d8dc7945eca_
antisamy-markup-formatter:173.v680e3a_b_69ff3
apache-httpcomponents-client-4-api:4.5.14-269.vfa_2321039a_83
asm-api:9.8-163.vb_2a_96d3f9c3c
authentication-tokens:1.144.v5ff4a_5ec5c33
bootstrap5-api:5.3.8-895.v4d0d8e47fea_d
bouncycastle-api:2.30.1.82-277.v70ca_0b_877184
branch-api:2.1253.v6e7f7519f710
build-timeout:1.38
caffeine-api:3.2.2-178.v353b_8428ed56
checks-api:373.vfe7645102093
cloudbees-folder:6.1045.vb_ddd55e2d03f
commons-lang3-api:3.19.0-104.v12125f33a_255
commons-text-api:1.14.0-194.v804a_dc3a_1b_d8
credentials:1447.v4cb_b_539b_5321
credentials-binding:702.vfe613e537e88
dark-theme:574.va_19f05d54df5
display-url-api:2.217.va_6b_de84cc74b_
docker-commons:457.v0f62a_94f11a_3
docker-workflow:621.va_73f881d9232
durable-task:605.v9a_b_9040c9970
echarts-api:6.0.0-1165.vd1283a_3e37d4
eddsa-api:0.3.0.1-19.vc432d923e5ee
email-ext:1925.v1598902b_58dd
font-awesome-api:7.0.1-872.vb_679b_2c95492
git:5.7.0
git-client:6.4.0
gitea:250.v76a_0b_d4fef5b_
github:1.45.0
github-api:1.330-492.v3941a_032db_2a_
github-branch-source:1869.vdb_846d75405b_
gradle:2.16.1149.v711b_998b_0532
gson-api:2.13.2-173.va_a_092315913c
handy-uri-templates-2-api:2.1.8-36.v85e4cb_234a_13
instance-identity:203.v15e81a_1b_7a_38
ionicons-api:94.vcc3065403257
jackson2-api:2.20.0-411.v6ef8fdee4fe9
jakarta-activation-api:2.1.3-2
jakarta-mail-api:2.1.3-3
javax-activation-api:1.2.0-8
jaxb:2.3.9-133.vb_ec76a_73f706
jjwt-api:0.11.5-120.v0268cf544b_89
joda-time-api:2.14.0-149.v1c3ce991d1b_9
jquery3-api:3.7.1-619.vdb_10e002501a_
json-api:20250517-173.v596efb_962a_31
json-path-api:2.9.0-190.veefca_05d5477
jsoup:1.21.2-66.v6ea_38164b_8a_2
junit:1355.v45e2ea_65863c
mailer:522.va_995fa_cfb_8b_d
matrix-auth:3.2.8
matrix-project:858.vb_b_eb_9a_7ea_99e
metrics:4.2.33-484.v2fcd689980d1
mina-sshd-api-common:2.16.0-167.va_269f38cc024
mina-sshd-api-core:2.16.0-167.va_269f38cc024
okhttp-api:4.12.0-195.vc02552c04ffd
pam-auth:1.12
pipeline-build-step:571.v08a_fffd4b_0ce
pipeline-github-lib:65.v203688e7727e
pipeline-graph-analysis:245.v88f03631a_b_21
pipeline-graph-view:646.va_da_a_047edca_c
pipeline-groovy-lib:766.v2b_e08c2e6ff2
pipeline-input-step:534.v352f0a_e98918
pipeline-milestone-step:138.v78ca_76831a_43
pipeline-model-api:2.2273.v643f36ed9e94
pipeline-model-definition:2.2273.v643f36ed9e94
pipeline-model-extensions:2.2273.v643f36ed9e94
pipeline-stage-step:322.vecffa_99f371c
pipeline-stage-tags-metadata:2.2273.v643f36ed9e94
plain-credentials:199.v9f8e1f741799
plugin-util-api:6.1192.v30fe6e2837ff
resource-disposer:0.25
scm-api:709.v6c27075a_b_1c7
script-security:1378.vf25626395f49
snakeyaml-api:2.3-125.v4d77857a_b_402
ssh-credentials:361.vb_f6760818e8c
ssh-slaves:3.1071.v0d059c7b_c555
structs:353.v261ea_40a_80fb_
theme-manager:319.v9193461f9671
timestamper:1.30
token-macro:477.vd4f0dc3cb_cf1
trilead-api:2.209.v0e69b_c43c245
variant:70.va_d9f17f859e0
workflow-aggregator:608.v67378e9d3db_1
workflow-api:1384.vdc05a_48f535f
workflow-basic-steps:1098.v808b_fd7f8cf4
workflow-cps:4209.v83c4e257f1e9
workflow-durable-task-step:1464.v2d3f5c68f84c
workflow-job:1549.vc8d7f497b_22f
workflow-multibranch:821.vc3b_4ea_780798
workflow-scm-step:452.vdf1ca_c8d3a_87
workflow-step-api:710.v3e456cc85233
workflow-support:989.va_20a_1a_57710a_
ws-cleanup:0.49Jenkins: 2.516.3 OS: Linux - 6.8.0-58-generic Java: 21.0.8 - Ubuntu (OpenJDK 64-Bit Server VM) --- ant:518.v8d8dc7945eca_ antisamy-markup-formatter:173.v680e3a_b_69ff3 apache-httpcomponents-client-4-api:4.5.14-269.vfa_2321039a_83 asm-api:9.8-163.vb_2a_96d3f9c3c authentication-tokens:1.144.v5ff4a_5ec5c33 bootstrap5-api:5.3.8-895.v4d0d8e47fea_d bouncycastle-api:2.30.1.82-277.v70ca_0b_877184 branch-api:2.1253.v6e7f7519f710 build-timeout:1.38 caffeine-api:3.2.2-178.v353b_8428ed56 checks-api:373.vfe7645102093 cloudbees-folder:6.1045.vb_ddd55e2d03f commons-lang3-api:3.19.0-104.v12125f33a_255 commons-text-api:1.14.0-194.v804a_dc3a_1b_d8 credentials:1447.v4cb_b_539b_5321 credentials-binding:702.vfe613e537e88 dark-theme:574.va_19f05d54df5 display-url-api:2.217.va_6b_de84cc74b_ docker-commons:457.v0f62a_94f11a_3 docker-workflow:621.va_73f881d9232 durable-task:605.v9a_b_9040c9970 echarts-api:6.0.0-1165.vd1283a_3e37d4 eddsa-api:0.3.0.1-19.vc432d923e5ee email-ext:1925.v1598902b_58dd font-awesome-api:7.0.1-872.vb_679b_2c95492 git:5.7.0 git-client:6.4.0 gitea:250.v76a_0b_d4fef5b_ github:1.45.0 github-api:1.330-492.v3941a_032db_2a_ github-branch-source:1869.vdb_846d75405b_ gradle:2.16.1149.v711b_998b_0532 gson-api:2.13.2-173.va_a_092315913c handy-uri-templates-2-api:2.1.8-36.v85e4cb_234a_13 instance-identity:203.v15e81a_1b_7a_38 ionicons-api:94.vcc3065403257 jackson2-api:2.20.0-411.v6ef8fdee4fe9 jakarta-activation-api:2.1.3-2 jakarta-mail-api:2.1.3-3 javax-activation-api:1.2.0-8 jaxb:2.3.9-133.vb_ec76a_73f706 jjwt-api:0.11.5-120.v0268cf544b_89 joda-time-api:2.14.0-149.v1c3ce991d1b_9 jquery3-api:3.7.1-619.vdb_10e002501a_ json-api:20250517-173.v596efb_962a_31 json-path-api:2.9.0-190.veefca_05d5477 jsoup:1.21.2-66.v6ea_38164b_8a_2 junit:1355.v45e2ea_65863c mailer:522.va_995fa_cfb_8b_d matrix-auth:3.2.8 matrix-project:858.vb_b_eb_9a_7ea_99e metrics:4.2.33-484.v2fcd689980d1 mina-sshd-api-common:2.16.0-167.va_269f38cc024 mina-sshd-api-core:2.16.0-167.va_269f38cc024 okhttp-api:4.12.0-195.vc02552c04ffd pam-auth:1.12 pipeline-build-step:571.v08a_fffd4b_0ce pipeline-github-lib:65.v203688e7727e pipeline-graph-analysis:245.v88f03631a_b_21 pipeline-graph-view:646.va_da_a_047edca_c pipeline-groovy-lib:766.v2b_e08c2e6ff2 pipeline-input-step:534.v352f0a_e98918 pipeline-milestone-step:138.v78ca_76831a_43 pipeline-model-api:2.2273.v643f36ed9e94 pipeline-model-definition:2.2273.v643f36ed9e94 pipeline-model-extensions:2.2273.v643f36ed9e94 pipeline-stage-step:322.vecffa_99f371c pipeline-stage-tags-metadata:2.2273.v643f36ed9e94 plain-credentials:199.v9f8e1f741799 plugin-util-api:6.1192.v30fe6e2837ff resource-disposer:0.25 scm-api:709.v6c27075a_b_1c7 script-security:1378.vf25626395f49 snakeyaml-api:2.3-125.v4d77857a_b_402 ssh-credentials:361.vb_f6760818e8c ssh-slaves:3.1071.v0d059c7b_c555 structs:353.v261ea_40a_80fb_ theme-manager:319.v9193461f9671 timestamper:1.30 token-macro:477.vd4f0dc3cb_cf1 trilead-api:2.209.v0e69b_c43c245 variant:70.va_d9f17f859e0 workflow-aggregator:608.v67378e9d3db_1 workflow-api:1384.vdc05a_48f535f workflow-basic-steps:1098.v808b_fd7f8cf4 workflow-cps:4209.v83c4e257f1e9 workflow-durable-task-step:1464.v2d3f5c68f84c workflow-job:1549.vc8d7f497b_22f workflow-multibranch:821.vc3b_4ea_780798 workflow-scm-step:452.vdf1ca_c8d3a_87 workflow-step-api:710.v3e456cc85233 workflow-support:989.va_20a_1a_57710a_ ws-cleanup:0.49
Hello
I want to use "Global Trusted Pipeline Libraries" to manage my groovy scripts for the pipelines in one git repositiory instead of copying the scripts into each repository.
I have tried to configure everything in Dashboard>Manage Jenkins>System>Global Trusted Pipeline Libraries - I have also added "Checkout over SSH" to the Source Code Management options, as well as SSH credentials and Gitea repository with credentials.
But when I try to use the library in the pipeline of another repository, the checkout of the library is attempted with a https link and credentials instead of SSH and therefore fails.
I use Jenkins with a Gitea server and only SSH checkout is allowed. The SSH checkout with the same credentials is working in the other repositiories (without global library).
I was able to get the library SSH checkout to work with legacy SCM.
I have already asked for help in the Jenkins community, but no one has answered:
https://community.jenkins.io/t/global-pipeline-library-over-gitea-ssh-checkout-does-not-work/33918
Since everything else is working fine (legacy SCM) I assume it is a bug.
I don't know if the bug is in the gitea-plugin or somewhere else.
There is already an error log in the jenkins configuration after the message "Cannot validate default version. ":
hudson.plugins.git.GitException: Command "git ls-remote -- https://gitea.server/Owner/JenkinsSharedLibrary.git" returned status code 128: stdout: stderr: fatal: unable to access 'https://gitea.server/Owner/JenkinsSharedLibrary.git/': server certificate verification failed. CAfile: none CRLfile: none at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2844) at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2189) at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2085) at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2076) at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteReferences(CliGitAPIImpl.java:3802) at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:885) ...
And the following errors in the Console Output of a pipeline:
// Code-PlatzhalterPush event to branch master Looking up repository Gitea_Organization/jenkins_test_2 Querying the current revision of branch master... Current revision of branch master is 84a99ef89646c2c98119897dac60b729cc1fa4d8 Obtained jenkins/Jenkinsfile from 84a99ef89646c2c98119897dac60b729cc1fa4d8 Loading library JenkinsSharedLibrary@main Attempting to resolve main from remote references... > git --version # timeout=10 > git --version # 'git version 2.43.0' using GIT_ASKPASS to set credentials Gitea Jenkins User > git ls-remote -- https://gitea.server/Owner/JenkinsSharedLibrary.git # timeout=10 ERROR: Checkout failed hudson.plugins.git.GitException: Command "git ls-remote -- https://gitea.server/Owner/JenkinsSharedLibrary.git" returned status code 128: stdout: stderr: fatal: unable to access 'https://gitea.server/Owner/JenkinsSharedLibrary.git/': server certificate verification failed. CAfile: none CRLfile: none at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2844) at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2189) at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2085) at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2076) at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteReferences(CliGitAPIImpl.java:3802) at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:885) Caused: java.io.IOException at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:887) at PluginClassLoader for scm-api//jenkins.scm.api.SCMSource.fetch(SCMSource.java:635) at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$retrieve$0(SCMSourceRetriever.java:75) at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMBasedRetriever.retrySCMOperation(SCMBasedRetriever.java:222) at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:75) at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:297) at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:156) at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125) at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293) at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:162) at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:188) at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:173) at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:656) at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:602) at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:341) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:454) ERROR: Maximum checkout retry attempts reached, aborting org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: Loading libraries failed ...