Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.
15 changes: 15 additions & 0 deletions jenkinsfile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
node('maven'){
stage('checkout'){
echo "cloning the repo"
git credentialsId: 'Agent1-ssh-key', url: 'https://github.com/Nyuyfoni13/sample-java-project.git'

}
stage('runningscript'){
echo " Running the script"
sh "sh test.sh"
}
stage('Final'){
echo " This job is completed and successfully saved"
}
}

4 changes: 4 additions & 0 deletions test.sh
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
#!/bin/bash
echo "first line of code"
echo "second line of code"
echo " third line of code"