Skip to content

Commit 2c4a175

Browse files
Working on Jenkinsfile for Docker
1 parent 93f5c26 commit 2c4a175

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

JenkinsFileDocker

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ pipeline
22
{
33
agent any
44

5+
tools
6+
{
7+
maven 'Maven_3.9.7'
8+
}
9+
510
stages
611
{
712
stage('Checkout Code to Jenkins from GitHub')
@@ -11,5 +16,13 @@ pipeline
1116
git branch: 'master', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git'
1217
}
1318
}
19+
20+
stage('Build Artifact using Maven')
21+
{
22+
steps()
23+
{
24+
sh 'mvn clean package'
25+
}
26+
}
1427
}
1528
}

0 commit comments

Comments
 (0)