-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
executable file
·36 lines (34 loc) · 908 Bytes
/
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
pipeline {
agent any
//agent { dokcer {image 'maven:3.6.3'} }
environment{
dockerHome= tool 'MyDocker'
mavenHome = tool 'MyMaven'
PATH = '$dockerHome/bin:$mavenHome/bin:$PATH'
}
stages{
stage('Build') {
steps {
sh 'mvn --version'
sh 'docker version'
echo "Build"
echo "PATH - $PATH"
echo "Build_NUMBER - $env.Build_NUMBER"
echo "Build_ID - $env.Build_ID"
echo "JOB_NAME -$env.JOB_NAME"
echo "Build_TAG -$env.Build_TAG"
echo "BUILD_URL -$env.BUILD_URL"
}
}
stage('Test') {
steps {
echo "Test"
}
}
stage('IntegrationTest') {
steps {
echo "IntegrationTest"
}
}
}
}