Skip to content
This repository was 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
Open

Dev #40

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"