Skip to content

Commit cd5f4c8

Browse files
committed
updated jeinkins file
1 parent eca9f8d commit cd5f4c8

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

Jenkinsfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)