forked from saurabh0010/houselannister
-
Notifications
You must be signed in to change notification settings - Fork 173
/
Jenkinsfile
50 lines (46 loc) · 1.17 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
pipeline {
agent any
stages {
stage('Get Latest Code') {
steps {
echo 'Get Latest Code'
// Get some code from a GitHub repository
git 'https://github.com/ravishsubramanya/Jenkins_Sample_Java_Project.git'
}
}
stage('Clean the Workspace') {
steps {
echo 'Clean the Workspace'
// Run Maven on a Unix agent.
sh "mvn clean"
}
}
stage('Compile') {
steps {
echo 'Compile'
// Run Maven on a Unix agent.
sh "mvn clean compile"
}
}
stage('Test') {
steps {
echo 'Test'
// Run Maven on a Unix agent.
sh "mvn clean compile test"
}
}
stage('Package the Solution') {
steps {
echo 'Package the Solution'
// Run Maven on a Unix agent.
sh "mvn clean compile package"
}
}
stage('Deploy to UAT') {
steps {
input 'Do you want to continue deploymen to UAT?'
echo 'Deploy to UAT'
}
}
}
}