-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathJenkinsfile-basic-docker-inside
49 lines (49 loc) · 1.1 KB
/
Jenkinsfile-basic-docker-inside
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
pipeline {
agent none
stages {
stage('Back-end') {
agent {
docker {
image 'maven:3-alpine'
}
}
steps {
sh """
mvn --version
echo "my cool file" > file1.txt
"""
}
}
stage('Front-end') {
agent {
docker {
image 'node:7-alpine'
}
}
steps {
sh """
ls -l
cat file1.txt
node --version
echo "my next file" > file2.txt
"""
}
}
stage('Artifactory') {
agent {
docker {
image 'docker.bintray.io/jfrog/jfrog-cli-go:latest'
alwaysPull true
}
}
steps {
sh """
ls -l
cat file1.txt
cat file2.txt
jfrog -v
"""
}
}
}
}