2021 Jul 27 2:58 PM
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 -
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 -
2021 Jul 28 11:15 AM
2021 Jul 29 1:06 AM
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
2021 Jul 29 1:10 AM
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"
]
}
}
2021 Jul 29 7:37 AM
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