Sonarqube with https connection - problem with waitForQualityGate() - sun.security.provider.certpath

Must-share information (formatted with Markdown):

  • which versions are you using:

  • SonarQube Server - 2025.1,

  • Scanner - SonarScanner 8.1.0.6389

  • how is SonarQube deployed: on baremetal server

    Hello,

    I’ve tried to run sonarqube using https connection with corporate certificates (not self-signed) and I have a problem with running Sonar-scanner analysis by Jenkins

    I want to run those analysis in Jenkins-agents spawned in docker swarm, I’ve tried to put those certificates in java keystores

    sonar-scanner running works just fine everything is successful and analysis results are visible in SonarQube site, but method waitForQualityGate() fails - here you have my JenkinsFile and anonimized logs

    sh "openssl s_client -connect $SONARQUBE_DNS_ADDRESS:443 \
    -showcerts < /dev/null 2>/dev/null > /tmp/sonar-cert.pem"
    sh "cp /tmp/sonar-cert.pem /usr/local/share/ca-certificates/sonar.crt"
    sh "update-ca-certificates"
    sh "keytool -import -alias sonarqube \
    -file /tmp/sonar-cert.pem \
    -cacerts -storepass changeit -noprompt"
    /*sh "keytool -import -alias sonarqube \
    -file /tmp/sonar-cert.pem \
    -keystore ${scannerHome}/jre/lib/security/cacerts -storepass changeit -noprompt"*/ // I've tried it but it won't helped
    sh "openssl pkcs12 -export -in /tmp/sonar-cert.pem \
    -out /tmp/sonar-keystore.p12 \
    -name sonarqube \
    -nokeys \
    -passout pass:changeit" // It also won't helped
    sh "curl ``https://``SONARQUBE_DNS_ADDRESS``/``" // CURL CONNECTION WORKS
    withSonarQubeEnv('SRPOL SonarQube') {
    def scannerHome = tool 'SonarScanner 8.1.0.6389';
    if (env.BINARY_NAME == "metric-processor")
    sh "mvn clean package sonar:sonar -Dsonar.projectKey=cloud-pi_${GITHUB_REPO} -Dsonar.host.url=https://${SONARQUBE_DNS_ADDRESS} -Dsonar.login=${SONARQUBE_TOKEN}"
    else
    sh "${scannerHome}/bin/sonar-scanner -Dsonar.projectVersion=${GIT_TAG} -Dsonar.projectKey=cloud-pi_${GITHUB_REPO} -Dsonar.scm.provider=git"
    }
    sleep(10)
    def qg = waitForQualityGate() // THIS METHOD IS FAILING
    if (qg.status != 'OK') {
    error "Pipeline aborted due to quality gate failure: ${qg.status}"

And logs from Jenkins job


openssl s_client -connect $SONARQUBE_DNS_ADDRESS:443 -showcerts
[Pipeline] sh

cp /tmp/sonar-cert.pem /usr/local/share/ca-certificates/sonar.crt
[Pipeline] sh

update-ca-certificates
Updating certificates in /etc/ssl/certs...
rehash: warning: skipping ca-certificates.crt, it does not contain exactly one certificate or CRL
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
Processing triggers for ca-certificates-java (20240118) ...
Adding debian:sonar.pem
done.
done.
[Pipeline] sh

keytool -import -alias sonarqube -file /tmp/sonar-cert.pem -cacerts -storepass changeit -noprompt
Certificate was added to keystore
[Pipeline] sh

openssl pkcs12 -export -in /tmp/sonar-cert.pem -out /tmp/sonar-keystore.p12 -name sonarqube -nokeys -passout pass:changeit
[Pipeline] sh

curl https://$SONARQUBE_DNS_ADDRESS/
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed

0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1698  100  1698    0     0  61853      0 --:--:-- --:--:-- --:--:-- 62888


<html lang="en">
  <head>
    <script type="module" crossorigin src="/js/polyfills-DCHatQ4c.js"></script>

<meta http-equiv="content-type" content="text/html; charset=UTF-8" charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="application-name" content="SonarQube" />
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta name="msapplication-TileImage" content="/mstile-512x512.png" />
<title>SonarQube</title>
<script>
  window.__assetsPath = function (filename) {
    return '/' + filename;
  };
</script>
<script type="module" crossorigin src="/js/main-BpqUkjvb.js"></script>
<link rel="modulepreload" crossorigin href="/js/vendor-BBa_E1n6.js">
<link rel="modulepreload" crossorigin href="/js/lodash-s22JGpjx.js">
<link rel="modulepreload" crossorigin href="/js/echoes-BY0iOvo_.js">
<link rel="modulepreload" crossorigin href="/js/highlightjs-BVGoGOkc.js">
<link rel="modulepreload" crossorigin href="/js/datefns-C62rL--z.js">
<link rel="stylesheet" crossorigin href="/css/echoes-Bubjfof9.css">
<link rel="stylesheet" crossorigin href="/css/main-DqABsncq.css">

</head>

<body>
    <div
      id="content"
      data-base-url=""
      data-server-status="UP"
      data-instance="SonarQube"
      data-official="true"
    >
      <div class="global-loading">
        <i class="global-loading-spinner"></i>
        <span aria-live="polite" class="global-loading-text">Loading...</span>
      </div>
    </div>
  </body>
</html>
[Pipeline] withSonarQubeEnv
Injecting SonarQube environment variables using the configuration: Project SonarQube
[Pipeline] {
[Pipeline] tool
Unpacking https://repo1.maven.org/maven2/org/sonarsource/scanner/cli/sonar-scanner-cli/8.1.0.6389/sonar-scanner-cli-8.1.0.6389.zip to /home/jenkins/agent/tools/hudson.plugins.sonar.SonarRunnerInstallation/SonarScanner_8.1.0.6389 on swarm-jenkins-slave-build-go26-42-457468ea
[Pipeline] sh
+ /home/jenkins/agent/tools/hudson.plugins.sonar.SonarRunnerInstallation/SonarScanner_8.1.0.6389/bin/sonar-scanner -Dsonar.projectVersion=82d69077fab8f7a0e62e0cbc63c42a1b335f66d5 -Dsonar.projectKey=git_repo -Dsonar.scm.provider=git
12:58:34.248 INFO  Scanner configuration file: /home/jenkins/agent/tools/hudson.plugins.sonar.SonarRunnerInstallation/SonarScanner_8.1.0.6389/conf/sonar-scanner.properties
12:58:34.254 INFO  Project root configuration file: /home/jenkins/agent/workspace/alth-jobs_spc-cloudwatch_develop/sonar-project.properties
12:58:34.277 INFO  SonarScanner CLI 8.1.0.6389
12:58:34.282 INFO  Linux 6.8.0-134-generic amd64
12:58:38.106 INFO  Communicating with SonarQube Server 2025.1.0.102418
12:58:38.107 WARN  Use of 'sonar.login' property has been deprecated in favor of 'sonar.token' (or the env variable alternative 'SONAR_TOKEN'). Please use the latter when passing a token.
12:58:38.108 INFO  JRE provisioning: os[linux], arch[x86_64]
12:58:40.956 INFO  Starting SonarScanner Engine...
12:58:40.956 INFO  Java 17.0.13 Eclipse Adoptium (64-bit)
12:58:44.560 INFO  Load global settings
12:58:44.767 INFO  Load global settings (done) | time=207ms
12:58:44.770 INFO  Server id: A7EE8CF2-AXNImwgmj0mQbTgxZyH0
12:58:44.781 INFO  Loading required plugins
12:58:44.781 INFO  Load plugins index
12:58:44.801 INFO  Load plugins index (done) | time=20ms
12:58:44.802 INFO  Load/download plugins
12:58:45.497 INFO  Load/download plugins (done) | time=696ms
12:58:45.612 INFO  Loaded core extensions: developer-scanner
12:58:45.874 INFO  Process project properties
12:58:45.901 INFO  Process project properties (done) | time=24ms
12:58:45.908 INFO  Project key: git_repo
12:58:45.910 INFO  Base dir: /home/jenkins/agent/workspace/alth-jobs_spc-cloudwatch_develop
12:58:45.910 INFO  Working dir: /home/jenkins/agent/workspace/alth-jobs_spc-cloudwatch_develop/.scannerwork
12:58:45.917 INFO  Load project settings for component key: 'git_repo'
12:58:45.939 INFO  Load project settings for component key: 'git_repo' (done) | time=22ms
12:58:45.961 INFO  Load project branches
12:58:45.986 INFO  Load project branches (done) | time=24ms
12:58:45.986 INFO  Load branch configuration
12:58:45.987 INFO  Detected branch/PR in 'Jenkins'
12:58:45.988 INFO  Auto-configuring branch 'develop'
12:58:45.988 INFO  Load branch configuration (done) | time=2ms
12:58:46.005 INFO  Load quality profiles
12:58:46.068 INFO  Load quality profiles (done) | time=63ms
12:58:46.077 INFO  Auto-configuring with CI 'Jenkins'
12:58:46.090 INFO  Load active rules
12:58:46.420 INFO  Load active rules (done) | time=332ms
12:58:46.426 INFO  Load analysis cache
12:58:46.475 INFO  Load analysis cache | time=47ms
12:58:46.513 INFO  Branch name: develop
12:58:46.515 WARN  The property 'sonar.login' is deprecated and will be removed in the future. Please use the 'sonar.token' property instead when passing a token.
12:58:46.553 INFO  Preprocessing files...
12:58:46.828 INFO  1 language detected in 189 preprocessed files
12:58:46.829 INFO  333 files ignored because of inclusion/exclusion patterns
12:58:46.829 INFO  2 files ignored because of scm ignore settings
12:58:46.831 INFO  Loading plugins for detected languages
12:58:46.832 INFO  Load/download plugins
12:58:46.928 INFO  Load/download plugins (done) | time=96ms
12:58:46.996 INFO  Load project repositories
12:58:47.114 INFO  Load project repositories (done) | time=118ms
12:58:47.136 INFO  Indexing files...
12:58:47.171 INFO  189 files indexed
12:58:47.172 INFO  Quality profile for go: Project way
12:58:47.173 INFO  ------------- Run sensors on module git_repo
12:58:47.219 INFO  Load metrics repository
12:58:47.240 INFO  Load metrics repository (done) | time=21ms
12:58:47.566 INFO  Sensor JaCoCo XML Report Importer [jacoco]
12:58:47.567 INFO  'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
12:58:47.567 INFO  No report imported, no coverage information will be imported by JaCoCo XML Report Importer
12:58:47.568 INFO  Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
12:58:47.568 INFO  Sensor Code Quality and Security for Go [go]
12:58:47.574 INFO  113 source files to be analyzed
12:58:50.046 INFO  113/113 source files have been analyzed
12:58:50.046 INFO  Sensor Code Quality and Security for Go [go] (done) | time=2478ms
12:58:50.047 INFO  Sensor Go Unit Test Report [go]
12:58:50.051 INFO  Sensor Go Unit Test Report [go] (done) | time=6ms
12:58:50.052 INFO  Sensor Go Cover sensor for Go coverage [go]
12:58:50.554 INFO  Sensor Go Cover sensor for Go coverage [go] (done) | time=502ms
12:58:50.555 INFO  Sensor Java Config Sensor [iac]
12:58:50.573 INFO  0 source files to be analyzed
12:58:50.574 INFO  0/0 source files have been analyzed
12:58:50.574 INFO  Sensor Java Config Sensor [iac] (done) | time=20ms
12:58:50.574 INFO  Sensor IaC Docker Sensor [iac]
12:58:50.642 INFO  0 source files to be analyzed
12:58:50.643 INFO  0/0 source files have been analyzed
12:58:50.643 INFO  Sensor IaC Docker Sensor [iac] (done) | time=68ms
12:58:50.644 INFO  Sensor DeveloperTextAndSecretsSensor [textdeveloper]
12:58:50.644 INFO  Available processors: 8
12:58:50.644 INFO  Using 8 threads for analysis.
12:58:51.041 INFO  Using git CLI to retrieve untracked files
12:58:51.161 INFO  Analyzing language associated files and files included via "sonar.text.inclusions" that are tracked by git
12:58:51.423 INFO  189 source files to be analyzed
12:58:52.359 INFO  189/189 source files have been analyzed
12:58:52.360 INFO  Sensor DeveloperTextAndSecretsSensor [textdeveloper] (done) | time=1718ms
12:58:52.364 INFO  ------------- Run sensors on project
12:58:52.483 INFO  Sensor Zero Coverage Sensor
12:58:52.488 INFO  Sensor Zero Coverage Sensor (done) | time=3ms
12:58:52.523 INFO  CPD Executor 4 files had no CPD blocks
12:58:52.523 INFO  CPD Executor Calculating CPD for 109 files
12:58:52.570 INFO  CPD Executor CPD calculation finished (done) | time=46ms
12:58:52.578 INFO  SCM revision ID '82d69077fab8f7a0e62e0cbc63c42a1b335f66d5'
12:58:52.722 INFO  Load New Code definition
12:58:52.739 INFO  Load New Code definition (done) | time=18ms
12:58:52.759 INFO  Analysis report generated in 170ms, dir size=3.0 MB
12:58:53.052 INFO  Analysis report compressed in 289ms, zip size=1.2 MB
12:58:53.163 INFO  Analysis report uploaded in 115ms
12:58:53.165 INFO  ANALYSIS SUCCESSFUL, you can find the results at: https://$SONARQUBE_DNS_ADDRESS/dashboard?id=git_repo&branch=develop
12:58:53.165 INFO  Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
12:58:53.165 INFO  More about the report processing at https://$SONARQUBE_DNS_ADDRESS/api/ce/task?id=1931780f-abd3-4434-882f-eb9442060df3
12:58:53.202 INFO  Analysis total time: 7.591 s
12:58:53.203 INFO  SonarScanner Engine completed successfully
12:58:53.573 INFO  EXECUTION SUCCESS
12:58:53.574 INFO  Total time: 19.370s

Sleeping for 10 sec
[Pipeline] waitForQualityGate
Checking status of SonarQube task '1931780f-abd3-4434-882f-eb9442060df3' on server 'Project SonarQube'
[Pipeline] }
Swarm agent pipeline step failed: Fail to request https://$SONARQUBE_DNS_ADDRESS/api/ce/task?id=1931780f-abd3-4434-882f-eb9442060df3
[Pipeline] // swarmAgent
[Pipeline] End of Pipeline
hudson.remoting.ProxyException: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.base/java.security.cert.CertPathBuilder.build(Unknown Source)
Caused: hudson.remoting.ProxyException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at java.base/sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at java.base/sun.security.validator.Validator.validate(Unknown Source)
at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
Caused: hudson.remoting.ProxyException: javax.net.ssl.SSLHandshakeException: (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)
at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(Unknown Source)
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(Unknown Source)
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(Unknown Source)
at java.base/sun.security.ssl.SSLHandshake.consume(Unknown Source)
at java.base/sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
at java.base/sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
at java.base/sun.security.ssl.TransportContext.dispatch(Unknown Source)
at java.base/sun.security.ssl.SSLTransport.decode(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at PluginClassLoader for okhttp-api//okhttp3.internal.connection.ConnectPlan.connectTls(ConnectPlan.kt:351)
at PluginClassLoader for okhttp-api//okhttp3.internal.connection.ConnectPlan.connectTlsEtc(ConnectPlan.kt:206)
at PluginClassLoader for okhttp-api//okhttp3.internal.connection.FastFallbackExchangeFinder.find(FastFallbackExchangeFinder.kt:78)
at PluginClassLoader for okhttp-api//okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:298)
at PluginClassLoader for okhttp-api//okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at PluginClassLoader for okhttp-api//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
at PluginClassLoader for okhttp-api//okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:101)
at PluginClassLoader for okhttp-api//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
at PluginClassLoader for okhttp-api//okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:85)
at PluginClassLoader for okhttp-api//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
at PluginClassLoader for okhttp-api//okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:74)
at PluginClassLoader for okhttp-api//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
at PluginClassLoader for okhttp-api//okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:226)
at PluginClassLoader for okhttp-api//okhttp3.internal.connection.RealCall.execute(RealCall.kt:178)
at PluginClassLoader for sonar//hudson.plugins.sonar.client.HttpClient.httpCall(HttpClient.java:70)
at PluginClassLoader for sonar//hudson.plugins.sonar.client.HttpClient.getHttp(HttpClient.java:42)
at PluginClassLoader for sonar//hudson.plugins.sonar.client.WsClient.getCETask(WsClient.java:49)
at PluginClassLoader for sonar//org.sonarsource.scanner.jenkins.pipeline.WaitForQualityGateStep$Execution.checkTaskCompleted(WaitForQualityGateStep.java:246)
at PluginClassLoader for sonar//org.sonarsource.scanner.jenkins.pipeline.WaitForQualityGateStep$Execution.start(WaitForQualityGateStep.java:181)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:339)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:199)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:124)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:41)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:180)
at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:163)
at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:178)
at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:182)
at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:152)
at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:152)
at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.LoggingInvoker.methodCall(LoggingInvoker.java:124)
Also:   hudson.remoting.ProxyException: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 62ffd806-1aec-4b77-8462-522cf3aa7411
Caused: hudson.remoting.ProxyException: java.lang.IllegalStateException: Fail to request https://$SONARQUBE_DNS_ADDRESS/api/ce/task?id=1931780f-abd3-4434-882f-eb9442060df3
at PluginClassLoader for sonar//hudson.plugins.sonar.client.HttpClient.httpCall(HttpClient.java:72)
at PluginClassLoader for sonar//hudson.plugins.sonar.client.HttpClient.getHttp(HttpClient.java:42)
at PluginClassLoader for sonar//hudson.plugins.sonar.client.WsClient.getCETask(WsClient.java:49)
at PluginClassLoader for sonar//org.sonarsource.scanner.jenkins.pipeline.WaitForQualityGateStep$Execution.checkTaskCompleted(WaitForQualityGateStep.java:246)
at PluginClassLoader for sonar//org.sonarsource.scanner.jenkins.pipeline.WaitForQualityGateStep$Execution.start(WaitForQualityGateStep.java:181)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:339)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:199)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:124)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:41)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:180)
at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:163)
at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:178)
at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:182)
at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:152)
at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:152)
at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.LoggingInvoker.methodCall(LoggingInvoker.java:124)
at WorkflowScript.run(WorkflowScript:180)
at cps.transform(Native Method)
at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:107)
at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:118)
at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixName(FunctionCallBlock.java:82)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:71)
at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.Next.step(Next.java:84)
at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:142)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:17)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:48)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:188)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:464)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:372)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:302)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService.lambda$wrap$4(CpsVmExecutorService.java:143)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
at jenkins.util.ContextResettingExecutorService.lambda$wrap$0(ContextResettingExecutorService.java:26)
at jenkins.security.ImpersonatingExecutorService.lambda$wrap$0(ImpersonatingExecutorService.java:66)
at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.call(CpsVmExecutorService.java:53)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.call(CpsVmExecutorService.java:50)
at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:136)
at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:275)
at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService.lambda$categoryThreadFactory$0(CpsVmExecutorService.java:50)
at java.base/java.lang.Thread.run(Unknown Source)

I run out from ideas, what can I do, so please help me