Skip to content

Commit 237e2d1

Browse files
authored
Update Jenkinsfile
1 parent ac1abc1 commit 237e2d1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Jenkinsfile

+9-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@ pipeline {
77
git branch: 'main', url: 'https://github.com/DinhVuHuan/test_devopps.git'
88
}
99
}
10-
stage('Hello Jenkins') {
10+
stage('Test') {
1111
steps {
12-
echo "Jenkins đang hoạt động!"
12+
echo "Chạy unit test..."
13+
sh './mvnw test'
14+
}
15+
}
16+
stage('Build') {
17+
steps {
18+
echo "Build ứng dụng..."
19+
sh './mvnw package'
1320
}
1421
}
1522
}

0 commit comments

Comments
 (0)