DevOps and System Administration Forum
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Jenkins build failure

0 Likes
5,226

Tutorials: https://developers.sap.com/tutorials/cp-cicd-systemtest-recorder.html
--------------------------

Write here what you need help with ...

I am on sub step 14 of step 6 - Integrate your system tests into a CI/CD pipeline.

I have followed the steps mentioned and also replaced the GIT URL. Please help!

When I choose Build Now, I get below errors -

  • git checkout master
    Already on 'master'
    [Pipeline] libraryResource
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] }
    [Pipeline] // node
    [Pipeline] End of Pipeline
    java.lang.NoSuchMethodError: No such DSL method 'readYaml' found among steps [archive, bat, build, catchError, checkout, deleteDir, dir, echo, emailext, emailextrecipients, envVarsForTool, error, fileExists, findBuildScans, getContext, git, input, isUnix, junit, library, libraryResource, load, lock, mail, milestone, node, parallel, powershell, properties, publishChecks, pwd, pwsh, readFile, readTrusted, resolveScm, retry, script, sh, sleep, stage, stash, step, timeout, timestamps, tm, tool, unarchive, unstable, unstash, validateDeclarativePipeline, waitUntil, warnError, withChecks, withContext, withCredentials, withEnv, withGradle, wrap, writeFile, ws] or symbols [GitUsernamePassword, all, allBranchesSame, allOf, always, ant, antFromApache, antOutcome, antTarget, any, anyOf, apiToken, architecture, archiveArtifacts, artifactManager, authorizationMatrix, batchFile, bitbucketServer, booleanParam, branch, brokenBuildSuspects, brokenTestsSuspects, buildButton, buildDiscarder, buildDiscarders, buildRetention, buildUser, buildingTag, caseInsensitive, caseSensitive, certificate, changeRequest, changelog, changeset, checkoutToSubdirectory, choice, choiceParam, cleanWs, clock, command, credentials, cron, crumb, culprits, defaultFolderConfiguration, defaultView, demand, developers, disableConcurrentBuilds, disableResume, downstream, dumb, durabilityHint, email-ext, envVars, envVarsFilter, environment, equals, expression, extendedEmailPublisher, file, fileParam, filePath, fingerprint, fingerprints, frameOptions, freeStyle, freeStyleJob, fromScm, fromSource, git, gitBranchDiscovery, gitHubBranchDiscovery, gitHubBranchHeadAuthority, gitHubExcludeArchivedRepositories, gitHubExcludeForkedRepositories, gitHubExcludePublicRepositories, gitHubForkDiscovery, gitHubIgnoreDraftPullRequestFilter, gitHubPullRequestDiscovery, gitHubSshCheckout, gitHubTagDiscovery, gitHubTopicsFilter, gitHubTrustContributors, gitHubTrustEveryone, gitHubTrustNobody, gitHubTrustPermissions, gitTagDiscovery, gitUsernamePassword, github, githubPush, gradle, headRegexFilter, headWildcardFilter, hyperlink, hyperlinkToModels, inheriting, inheritingGlobal, installSource, isRestartedRun, jdk, jdkInstaller, jgit, jgitapache, jnlp, jobBuildDiscarder, jobName, junitTestResultStorage, label, lastDuration, lastFailure, lastGrantedAuthorities, lastStable, lastSuccess, legacy, legacySCM, list, local, location, logRotator, loggedInUsersCanDoAnything, mailer, masterBuild, maven, maven3Mojos, mavenErrors, mavenGlobalConfig, mavenMojos, mavenWarnings, modernSCM, myView, namedBranchesDifferent, node, nodeProperties, nonInheriting, none, not, overrideIndexTriggers, paneStatus, parallelsAlwaysFailFast, parameters, password, pattern, permanent, pipelineTriggers, plainText, plugin, pollSCM, preserveStashes, projectNamingStrategy, proxy, pruneTags, queueItemAuthenticator, quietPeriod, rateLimit, rateLimitBuilds, recipients, requestor, resourceRoot, retainOnlyVariables, run, runParam, sSHLauncher, schedule, scmRetryCount, scriptApproval, scriptApprovalLink, search, security, shell, simpleBuildDiscarder, skipDefaultCheckout, skipStagesAfterUnstable, slave, sourceRegexFilter, sourceWildcardFilter, ssh, sshPublicKey, sshUserPrivateKey, standard, status, string, stringParam, suppressAutomaticTriggering, swapSpace, tag, teamSlugFilter, text, textParam, timestamper, timestamperConfig, timezone, tmpSpace, toolLocation, triggeredBy, unsecured, untrusted, upstream, upstreamDevelopers, userSeed, usernameColonPassword, usernamePassword, viewsTabBar, weather, withAnt, zip] or globals [abapAddonAssemblyKitCheckCVs, abapAddonAssemblyKitCheckPV, abapAddonAssemblyKitCreateTargetVector, abapAddonAssemblyKitPublishTargetVector, abapAddonAssemblyKitRegisterPackages, abapAddonAssemblyKitReleasePackages, abapAddonAssemblyKitReserveNextPackages, abapEnvironmentAssembleConfirm, abapEnvironmentAssemblePackages, abapEnvironmentCheckoutBranch, abapEnvironmentCloneGitRepo, abapEnvironmentCreateSystem, abapEnvironmentPipeline, abapEnvironmentPipelineStageATC, abapEnvironmentPipelineStageBuild, abapEnvironmentPipelineStageCloneRepositories, abapEnvironmentPipelineStageConfirm, abapEnvironmentPipelineStageInit, abapEnvironmentPipelineStageInitialChecks, abapEnvironmentPipelineStageIntegrationTests, abapEnvironmentPipelineStagePost, abapEnvironmentPipelineStagePrepareSystem, abapEnvironmentPipelineStagePublish, abapEnvironmentPullGitRepo, abapEnvironmentRunATCCheck, artifactPrepareVersion, artifactSetVersion, batsExecuteTests, buildExecute, buildSetResult, cfManifestSubstituteVariables, checkChangeInDevelopment, checkForLegacyConfiguration, checkmarxExecuteScan, checksPublishResults, cloudFoundryCreateService, cloudFoundryCreateServiceKey, cloudFoundryCreateSpace, cloudFoundryDeleteService, cloudFoundryDeleteSpace, cloudFoundryDeploy, commonPipelineEnvironment, containerExecuteStructureTests, containerPushToRegistry, containerSaveImage, currentBuild, debugReportArchive, detectExecuteScan, dockerExecute, dockerExecuteOnKubernetes, dubExecute, durationMeasure, env, fioriOnCloudPlatformPipeline, fortifyExecuteScan, gatlingExecuteTests, gaugeExecuteTests, gctsCloneRepository, gctsCreateRepository, gctsDeploy, gctsExecuteABAPUnitTests, gctsRollback, githubCheckBranchProtection, githubCommentIssue, githubCreateIssue, githubPublishRelease, githubSetCommitStatus, gitopsUpdateDeployment, hadolintExecute, handlePipelineStepErrors, healthExecuteCheck, influxWriteData, integrationArtifactDeploy, integrationArtifactDownload, integrationArtifactGetMplStatus, integrationArtifactGetServiceEndpoint, integrationArtifactTriggerIntegrationTest, integrationArtifactUpdateConfiguration, integrationArtifactUpload, jenkinsMaterializeLog, kanikoExecute, karmaExecuteTests, kubernetesDeploy, mailSendNotification, malwareExecuteScan, mavenBuild, mavenExecute, mavenExecuteIntegration, mavenExecuteStaticCodeChecks, mtaBuild, multicloudDeploy, neoDeploy, newmanExecute, nexusUpload, npmExecute, npmExecuteEndToEndTests, npmExecuteLint, npmExecuteScripts, params, pipeline, pipelineCreateScanSummary, pipelineExecute, pipelineRestartSteps, pipelineStashFiles, pipelineStashFilesAfterBuild, pipelineStashFilesBeforeBuild, piperExecuteBin, piperInitRunStageConfiguration, piperLoadGlobalExtensions, piperPipeline, piperPipelineStageAcceptance, piperPipelineStageAdditionalUnitTests, piperPipelineStageArtifactDeployment, piperPipelineStageBuild, piperPipelineStageCompliance, piperPipelineStageConfirm, piperPipelineStageInit, piperPipelineStageIntegration, piperPipelineStageMavenStaticCodeChecks, piperPipelineStagePRVoting, piperPipelineStagePerformance, piperPipelineStagePost, piperPipelineStagePromote, piperPipelineStageRelease, piperPipelineStageSecurity, piperPublishWarnings, piperStageWrapper, prepareDefaultValues, protecodeExecuteScan, readPipelineEnv, runClosures, scm, seleniumExecuteTests, setupCommonPipelineEnvironment, slackSendNotification, snykExecute, sonarExecuteScan, spinnakerTriggerPipeline, terraformExecute, testsPublishResults, tmsUpload, transportRequestCreate, transportRequestDocIDFromGit, transportRequestRelease, transportRequestReqIDFromGit, transportRequestUploadCTS, transportRequestUploadFile, transportRequestUploadRFC, transportRequestUploadSOLMAN, uiVeri5ExecuteTests, vaultRotateSecretId, whitesourceExecuteScan, writePipelineEnv, writeTemporaryCredentials, xsDeploy]
    at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:216)
    at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
    at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
    at com.sap.piper.DefaultValueCache.addDefaultsFromLibraryResources(DefaultValueCache.groovy:66)
    at com.sap.piper.DefaultValueCache.prepare(DefaultValueCache.groovy:51)
    at com.sap.piper.DefaultValueCache.prepare(DefaultValueCache.groovy)
    at com.sap.piper.ConfigurationHelper.loadStepDefaults(ConfigurationHelper.groovy:13)
    at uiVeri5ExecuteTests.call(uiVeri5ExecuteTests.groovy:27)
    at WorkflowScript.run(WorkflowScript:15)
    at cps.transform(Native Method)
    at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86)
    at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
    at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
    at jdk.internal.reflect.GeneratedMethodAccessor476.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
    at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55)
    at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45)
    at jdk.internal.reflect.GeneratedMethodAccessor585.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
    at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:89)
    at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
    at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
    at jdk.internal.reflect.GeneratedMethodAccessor476.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
    at com.cloudbees.groovy.cps.impl.LocalVariableBlock$LocalVariable.get(LocalVariableBlock.java:39)
    at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
    at com.cloudbees.groovy.cps.impl.LocalVariableBlock.evalLValue(LocalVariableBlock.java:28)
    at com.cloudbees.groovy.cps.LValueBlock$BlockImpl.eval(LValueBlock.java:55)
    at com.cloudbees.groovy.cps.LValueBlock.eval(LValueBlock.java:16)
    at com.cloudbees.groovy.cps.Next.step(Next.java:83)
    at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
    at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
    at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
    at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
    at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
    at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
    at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
    at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:400)
    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312)
    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276)
    at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
    at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
    Finished: FAILURE

Tutorials: https://developers.sap.com/tutorials/cp-cicd-systemtest-recorder.html
--------------------------

Write here what you need help with ...

I am on sub step 14 of step 6 - Integrate your system tests into a CI/CD pipeline.

I have followed the steps mentioned and also replaced the GIT URL. Please help!

When I choose Build Now, I get below errors -

  • git checkout master
    Already on 'master'
    [Pipeline] libraryResource
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] }
    [Pipeline] // node
    [Pipeline] End of Pipeline
    java.lang.NoSuchMethodError: No such DSL method 'readYaml' found among steps [archive, bat, build, catchError, checkout, deleteDir, dir, echo, emailext, emailextrecipients, envVarsForTool, error, fileExists, findBuildScans, getContext, git, input, isUnix, junit, library, libraryResource, load, lock, mail, milestone, node, parallel, powershell, properties, publishChecks, pwd, pwsh, readFile, readTrusted, resolveScm, retry, script, sh, sleep, stage, stash, step, timeout, timestamps, tm, tool, unarchive, unstable, unstash, validateDeclarativePipeline, waitUntil, warnError, withChecks, withContext, withCredentials, withEnv, withGradle, wrap, writeFile, ws] or symbols [GitUsernamePassword, all, allBranchesSame, allOf, always, ant, antFromApache, antOutcome, antTarget, any, anyOf, apiToken, architecture, archiveArtifacts, artifactManager, authorizationMatrix, batchFile, bitbucketServer, booleanParam, branch, brokenBuildSuspects, brokenTestsSuspects, buildButton, buildDiscarder, buildDiscarders, buildRetention, buildUser, buildingTag, caseInsensitive, caseSensitive, certificate, changeRequest, changelog, changeset, checkoutToSubdirectory, choice, choiceParam, cleanWs, clock, command, credentials, cron, crumb, culprits, defaultFolderConfiguration, defaultView, demand, developers, disableConcurrentBuilds, disableResume, downstream, dumb, durabilityHint, email-ext, envVars, envVarsFilter, environment, equals, expression, extendedEmailPublisher, file, fileParam, filePath, fingerprint, fingerprints, frameOptions, freeStyle, freeStyleJob, fromScm, fromSource, git, gitBranchDiscovery, gitHubBranchDiscovery, gitHubBranchHeadAuthority, gitHubExcludeArchivedRepositories, gitHubExcludeForkedRepositories, gitHubExcludePublicRepositories, gitHubForkDiscovery, gitHubIgnoreDraftPullRequestFilter, gitHubPullRequestDiscovery, gitHubSshCheckout, gitHubTagDiscovery, gitHubTopicsFilter, gitHubTrustContributors, gitHubTrustEveryone, gitHubTrustNobody, gitHubTrustPermissions, gitTagDiscovery, gitUsernamePassword, github, githubPush, gradle, headRegexFilter, headWildcardFilter, hyperlink, hyperlinkToModels, inheriting, inheritingGlobal, installSource, isRestartedRun, jdk, jdkInstaller, jgit, jgitapache, jnlp, jobBuildDiscarder, jobName, junitTestResultStorage, label, lastDuration, lastFailure, lastGrantedAuthorities, lastStable, lastSuccess, legacy, legacySCM, list, local, location, logRotator, loggedInUsersCanDoAnything, mailer, masterBuild, maven, maven3Mojos, mavenErrors, mavenGlobalConfig, mavenMojos, mavenWarnings, modernSCM, myView, namedBranchesDifferent, node, nodeProperties, nonInheriting, none, not, overrideIndexTriggers, paneStatus, parallelsAlwaysFailFast, parameters, password, pattern, permanent, pipelineTriggers, plainText, plugin, pollSCM, preserveStashes, projectNamingStrategy, proxy, pruneTags, queueItemAuthenticator, quietPeriod, rateLimit, rateLimitBuilds, recipients, requestor, resourceRoot, retainOnlyVariables, run, runParam, sSHLauncher, schedule, scmRetryCount, scriptApproval, scriptApprovalLink, search, security, shell, simpleBuildDiscarder, skipDefaultCheckout, skipStagesAfterUnstable, slave, sourceRegexFilter, sourceWildcardFilter, ssh, sshPublicKey, sshUserPrivateKey, standard, status, string, stringParam, suppressAutomaticTriggering, swapSpace, tag, teamSlugFilter, text, textParam, timestamper, timestamperConfig, timezone, tmpSpace, toolLocation, triggeredBy, unsecured, untrusted, upstream, upstreamDevelopers, userSeed, usernameColonPassword, usernamePassword, viewsTabBar, weather, withAnt, zip] or globals [abapAddonAssemblyKitCheckCVs, abapAddonAssemblyKitCheckPV, abapAddonAssemblyKitCreateTargetVector, abapAddonAssemblyKitPublishTargetVector, abapAddonAssemblyKitRegisterPackages, abapAddonAssemblyKitReleasePackages, abapAddonAssemblyKitReserveNextPackages, abapEnvironmentAssembleConfirm, abapEnvironmentAssemblePackages, abapEnvironmentCheckoutBranch, abapEnvironmentCloneGitRepo, abapEnvironmentCreateSystem, abapEnvironmentPipeline, abapEnvironmentPipelineStageATC, abapEnvironmentPipelineStageBuild, abapEnvironmentPipelineStageCloneRepositories, abapEnvironmentPipelineStageConfirm, abapEnvironmentPipelineStageInit, abapEnvironmentPipelineStageInitialChecks, abapEnvironmentPipelineStageIntegrationTests, abapEnvironmentPipelineStagePost, abapEnvironmentPipelineStagePrepareSystem, abapEnvironmentPipelineStagePublish, abapEnvironmentPullGitRepo, abapEnvironmentRunATCCheck, artifactPrepareVersion, artifactSetVersion, batsExecuteTests, buildExecute, buildSetResult, cfManifestSubstituteVariables, checkChangeInDevelopment, checkForLegacyConfiguration, checkmarxExecuteScan, checksPublishResults, cloudFoundryCreateService, cloudFoundryCreateServiceKey, cloudFoundryCreateSpace, cloudFoundryDeleteService, cloudFoundryDeleteSpace, cloudFoundryDeploy, commonPipelineEnvironment, containerExecuteStructureTests, containerPushToRegistry, containerSaveImage, currentBuild, debugReportArchive, detectExecuteScan, dockerExecute, dockerExecuteOnKubernetes, dubExecute, durationMeasure, env, fioriOnCloudPlatformPipeline, fortifyExecuteScan, gatlingExecuteTests, gaugeExecuteTests, gctsCloneRepository, gctsCreateRepository, gctsDeploy, gctsExecuteABAPUnitTests, gctsRollback, githubCheckBranchProtection, githubCommentIssue, githubCreateIssue, githubPublishRelease, githubSetCommitStatus, gitopsUpdateDeployment, hadolintExecute, handlePipelineStepErrors, healthExecuteCheck, influxWriteData, integrationArtifactDeploy, integrationArtifactDownload, integrationArtifactGetMplStatus, integrationArtifactGetServiceEndpoint, integrationArtifactTriggerIntegrationTest, integrationArtifactUpdateConfiguration, integrationArtifactUpload, jenkinsMaterializeLog, kanikoExecute, karmaExecuteTests, kubernetesDeploy, mailSendNotification, malwareExecuteScan, mavenBuild, mavenExecute, mavenExecuteIntegration, mavenExecuteStaticCodeChecks, mtaBuild, multicloudDeploy, neoDeploy, newmanExecute, nexusUpload, npmExecute, npmExecuteEndToEndTests, npmExecuteLint, npmExecuteScripts, params, pipeline, pipelineCreateScanSummary, pipelineExecute, pipelineRestartSteps, pipelineStashFiles, pipelineStashFilesAfterBuild, pipelineStashFilesBeforeBuild, piperExecuteBin, piperInitRunStageConfiguration, piperLoadGlobalExtensions, piperPipeline, piperPipelineStageAcceptance, piperPipelineStageAdditionalUnitTests, piperPipelineStageArtifactDeployment, piperPipelineStageBuild, piperPipelineStageCompliance, piperPipelineStageConfirm, piperPipelineStageInit, piperPipelineStageIntegration, piperPipelineStageMavenStaticCodeChecks, piperPipelineStagePRVoting, piperPipelineStagePerformance, piperPipelineStagePost, piperPipelineStagePromote, piperPipelineStageRelease, piperPipelineStageSecurity, piperPublishWarnings, piperStageWrapper, prepareDefaultValues, protecodeExecuteScan, readPipelineEnv, runClosures, scm, seleniumExecuteTests, setupCommonPipelineEnvironment, slackSendNotification, snykExecute, sonarExecuteScan, spinnakerTriggerPipeline, terraformExecute, testsPublishResults, tmsUpload, transportRequestCreate, transportRequestDocIDFromGit, transportRequestRelease, transportRequestReqIDFromGit, transportRequestUploadCTS, transportRequestUploadFile, transportRequestUploadRFC, transportRequestUploadSOLMAN, uiVeri5ExecuteTests, vaultRotateSecretId, whitesourceExecuteScan, writePipelineEnv, writeTemporaryCredentials, xsDeploy]
    at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:216)
    at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
    at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
    at com.sap.piper.DefaultValueCache.addDefaultsFromLibraryResources(DefaultValueCache.groovy:66)
    at com.sap.piper.DefaultValueCache.prepare(DefaultValueCache.groovy:51)
    at com.sap.piper.DefaultValueCache.prepare(DefaultValueCache.groovy)
    at com.sap.piper.ConfigurationHelper.loadStepDefaults(ConfigurationHelper.groovy:13)
    at uiVeri5ExecuteTests.call(uiVeri5ExecuteTests.groovy:27)
    at WorkflowScript.run(WorkflowScript:15)
    at cps.transform(Native Method)
    at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86)
    at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
    at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
    at jdk.internal.reflect.GeneratedMethodAccessor476.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
    at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55)
    at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45)
    at jdk.internal.reflect.GeneratedMethodAccessor585.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
    at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:89)
    at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
    at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
    at jdk.internal.reflect.GeneratedMethodAccessor476.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
    at com.cloudbees.groovy.cps.impl.LocalVariableBlock$LocalVariable.get(LocalVariableBlock.java:39)
    at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
    at com.cloudbees.groovy.cps.impl.LocalVariableBlock.evalLValue(LocalVariableBlock.java:28)
    at com.cloudbees.groovy.cps.LValueBlock$BlockImpl.eval(LValueBlock.java:55)
    at com.cloudbees.groovy.cps.LValueBlock.eval(LValueBlock.java:16)
    at com.cloudbees.groovy.cps.Next.step(Next.java:83)
    at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
    at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
    at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
    at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
    at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
    at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
    at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
    at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:400)
    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312)
    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276)
    at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
    at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
    Finished: FAILURE
4 REPLIES 4
Read only

3,204

Hi Utkarsh,

Looking at this error, it seems that there is missing some dependancy or Piper is not imported correctly.

Could you please share your pipeline code, so I would be able to guide you how to fix it?

Best Regards,

Hristo

Read only

0 Likes
3,204

Thanks for guiding me in the right direction. You are correct, I was missing Pipeline Utility Steps Plugin. I installed and got rid of the issue. I am now facing below issue. If you can please provide some insights, will be of great help !

Started by user Utkarsh Kanade
Running in Durability level: MAX_SURVIVABILITY
Loading library piper-library-os@master
Attempting to resolve master from remote references...
 > git --version # timeout=10
 > git --version # 'git version 2.30.1 (Apple Git-130)'
 > git ls-remote -h -- https://github.com/SAP/jenkins-library # timeout=10
Found match: refs/heads/master revision 2f2fd84193c0709c19d7b7764200c080da2d6c36
The recommended git tool is: git
No credentials specified
 > git rev-parse --resolve-git-dir /Users/utkarshkanade/.jenkins/workspace/UI-Testing@libs/piper-library-os/.git # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/SAP/jenkins-library # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/SAP/jenkins-library
 > git --version # timeout=10
 > git --version # 'git version 2.30.1 (Apple Git-130)'
 > git fetch --no-tags --force --progress -- https://github.com/SAP/jenkins-library +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking out Revision 2f2fd84193c0709c19d7b7764200c080da2d6c36 (master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 2f2fd84193c0709c19d7b7764200c080da2d6c36 # timeout=10
Commit message: "GetIntegrationArtifactMPLError function (#3000)"
 > git rev-list --no-walk 7259ccc726803141b2c8a6ab16fc549a2bc4ba89 # timeout=10
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /Users/utkarshkanade/.jenkins/workspace/UI-Testing
[Pipeline] {
[Pipeline] stage
[Pipeline] { (System Tests)
[Pipeline] deleteDir
[Pipeline] git
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository https://github.com/Utkarshk7/DevOpsTest.git
 > git init /Users/utkarshkanade/.jenkins/workspace/UI-Testing # timeout=10
Fetching upstream changes from https://github.com/Utkarshk7/DevOpsTest.git
 > git --version # timeout=10
 > git --version # 'git version 2.30.1 (Apple Git-130)'
 > git fetch --tags --force --progress -- https://github.com/Utkarshk7/DevOpsTest.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/Utkarshk7/DevOpsTest.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision 924ecdecebaccb21064584567d5a7add0103dded (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 924ecdecebaccb21064584567d5a7add0103dded # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b master 924ecdecebaccb21064584567d5a7add0103dded # timeout=10
Commit message: "pipeline removed"
 > git rev-list --no-walk 924ecdecebaccb21064584567d5a7add0103dded # timeout=10
[Pipeline] sh
+ git checkout master
Already on 'master'
[Pipeline] libraryResource
[Pipeline] readYaml
[Pipeline] echo
--- Begin library step of: uiVeri5ExecuteTests ---
[Pipeline] echo
Unstash content: piper-bin
[Pipeline] unstash
[Pipeline] echo
Unstash failed: piper-bin (No such saved stash ‘piper-bin’)
[Pipeline] sh
+ curl --insecure --silent --location --write-out '%{http_code}' --output piper https://github.com/SAP/jenkins-library/releases/download/null/piper
[Pipeline] echo
Not able to download go binary of Piper for version null
[Pipeline] retry
[Pipeline] {
[Pipeline] sh
+ curl --insecure --silent --location --write-out '%{http_code}' --output piper https://github.com/SAP/jenkins-library/releases/latest/download/piper_master
[Pipeline] sh
+ chmod +x piper
[Pipeline] }
[Pipeline] // retry
[Pipeline] sh
+ ./piper version
/Users/utkarshkanade/.jenkins/workspace/UI-Testing@tmp/durable-b1e78b5e/script.sh: line 1: ./piper: cannot execute binary file
[Pipeline] error
[Pipeline] libraryResource
[Pipeline] echo
----------------------------------------------------------
--- An error occurred in the library step: uiVeri5ExecuteTests
----------------------------------------------------------

The following parameters were available to the step:
***
*** to show step parameters, set verbose:true in general pipeline configuration
*** WARNING: this may reveal sensitive information. ***
***

The error was:
***
hudson.AbortException: Cannot get piper go binary version: hudson.AbortException: script returned exit code 126
***

Further information:
* Documentation of library step uiVeri5ExecuteTests: https://sap.github.io/jenkins-library/steps/uiVeri5ExecuteTests/
* Source code of library step uiVeri5ExecuteTests: https://github.com/SAP/jenkins-library/blob/master/vars/uiVeri5ExecuteTests.groovy
* Library documentation: https://sap.github.io/jenkins-library/
* Library repository: https://github.com/SAP/jenkins-library/

----------------------------------------------------------
--- End library step of: uiVeri5ExecuteTests ---
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: Cannot get piper go binary version: hudson.AbortException: script returned exit code 126
Finished: FAILURE
Read only

0 Likes
3,204

My Pipeline code is -

#!/usr/bin/env groovy

@Library('piper-library-os') _

//Setup the skeleton for Jenkins based Runs

node {

stage('System Tests')

{

deleteDir()

// Clone code from the system test repository

git 'https://github.com/Utkarshk7/DevOpsTest.git'

// checkout the master branch

sh 'git checkout master'

// With this next step UIVeri5 tests can be executed.

uiVeri5ExecuteTests script: this

// HTML Publisher plugin

// Publish HTML reports

// Publish Test Report for UIveri5 on Jenkins

publishHTML target: [

allowMissing: true,

alwaysLinkToLastBuild: true,

keepAll: true,

reportDir: 'target/report/screenshots/',

reportFiles: "report.html",

reportName: "UIVeri5 Test Report"

]

}

}

Read only

0 Likes
3,204

Hi Utkarsh,

From the log you provided I can conclude that piper is not properly configured on your jenkins instance.

Please get familiar with this guide: https://www.project-piper.io/guidedtour/

Then you should be able to apply the required configurations.

Best Regards,

Hristo