File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pipeline {
1212 script {
1313 checkout scm : [
1414 $class : ' GitSCM' ,
15- branches : [[name : ' master' ]], // Adjust branch as needed
15+ branches : [[name : ' master' ]],
1616 userRemoteConfigs : [[url : ' https://github.com/Etimdevops/JavaCalculator.git' ]]
1717 ]
1818 }
@@ -34,7 +34,7 @@ pipeline {
3434 script {
3535 checkout scm : [
3636 $class : ' GitSCM' ,
37- branches : [[name : ' qa' ]], // Adjust branch as needed
37+ branches : [[name : ' qa' ]],
3838 userRemoteConfigs : [[url : ' https://github.com/Etimdevops/JavaCalculator.git' ]]
3939 ]
4040 }
@@ -51,14 +51,13 @@ pipeline {
5151 }
5252 }
5353 }
54- stage(' Checkout Code for File Transfer ' ) {
54+ stage(' Verify Workspace ' ) {
5555 steps {
5656 script {
57- checkout scm : [
58- $class : ' GitSCM' ,
59- branches : [[name : ' master' ]], // Adjust branch as needed
60- userRemoteConfigs : [[url : ' https://github.com/Etimdevops/JavaCalculator.git' ]]
61- ]
57+ sh ' echo "Current workspace directory:"'
58+ sh ' pwd'
59+ sh ' echo "List of files in the workspace:"'
60+ sh ' ls -la /home/ec2-user/JavaCalculator/'
6261 }
6362 }
6463 }
You can’t perform that action at this time.
0 commit comments