Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Dev #40

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
15 changes: 15 additions & 0 deletions jenkinsfile
Original file line number Diff line number Diff 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 number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
echo "first line of code"
echo "second line of code"
echo " third line of code"