forked from JOMACS-IT/web-app-10
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile_Library_Project
More file actions
40 lines (36 loc) · 859 Bytes
/
Copy pathJenkinsfile_Library_Project
File metadata and controls
40 lines (36 loc) · 859 Bytes
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
@Library('JomacsSharedLibrary') _
pipeline{
agent any
tools{
maven "maven3.8.8"
}
stages{
stage("1. Git clone from repo"){
steps{
sh "echo start of git clone"
git branch: 'main', url: 'https://github.com/JOMACS-IT/web-app.git'
sh "echo end of git clone"
}
}
stage("2. Build from Maven"){
steps{
sh "echo start building from Maven"
common("Build")
sh "echo end of build"
}
}
stage("3. Code Scan"){
steps{
sh "echo start of code scan"
common("Code Quality Report")
sh "echo end of code scan"
}
}
stage("4. Store Artifacts"){
steps{
sh "echo Deploy Artifact"
common("Upload Into Nexus")
}
}
}
}