Skip to content

Commit 9ddf21e

Browse files
authored
Update Jenkinsfile
1 parent 47a2281 commit 9ddf21e

1 file changed

Lines changed: 21 additions & 11 deletions

File tree

Jenkinsfile

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
pipeline
22
{
3-
agent any
4-
stages
5-
{
6-
stage('Build')
7-
{
8-
steps
9-
{
10-
sh 'mvn clean install'
11-
}
12-
}
13-
}
3+
agent any
4+
environment
5+
{
6+
PATH = "/usr/bin/:$PATH"
7+
}
8+
stages{
9+
stage("Git")
10+
{
11+
steps{
12+
git credentialsId: '48d5f80a-5851-4f96-9aee-f909eb748870', url: 'https://github.com/kajendran1/sample-code-java.git'
13+
echo 'suceesfully checkout'
14+
}
15+
}
16+
stage("Build")
17+
{
18+
steps{
19+
sh "mvn clean install"
20+
echo 'build suceesfull'
21+
}
22+
}
23+
}
1424
}

0 commit comments

Comments
 (0)