-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathJenkinsfile
More file actions
32 lines (27 loc) · 876 Bytes
/
Jenkinsfile
File metadata and controls
32 lines (27 loc) · 876 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
pipeline {
node { label "$NODE" }
parameters {
// gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
// parameters { string(name: 'NODE', defaultValue: 'some_node', description: '') }
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH',string(name: 'NODE', defaultValue: 'master', description: '')
}
stages {
stage('Checkout') {
steps {
git branch: "${params.BRANCH}", url: 'https://github.com/csenapati12/java-tomcat-maven-docker.git'
}
}
stage('Build and Package') {
steps {
script{
sh """
ls
# mvn clean package
echo "MAster"
ls -la
"""
}
}
}
}
}