-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
39 lines (33 loc) · 1.01 KB
/
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
36
37
38
39
node('docker') {
sh 'touch test.txt'
stage 'checkout'
checkout scm
sh "ip route show"
sh 'echo ${WORKSPACE}'
sh 'ls ${WORKSPACE}'
env.DOCKER_HOST="172.17.0.1:4243"
sh "docker images"
sh "docker run -t -v ${PWD}:/var/xuxa -w /var/xuxa alpine echo 'alpine' && ls"
/*docker.withServer('tcp://172.17.0.1:4243') {
docker.image('alpine').inside {
sh 'echo "ESTOU DENTRO DO ALPINE"'
}
// docker.image('alpine').withRun {c ->
// sh 'echo "ESTOU DENTRO DO ALPINE"'
// }
}*/
println 'tttteste rodando a paradinha com docker agent'
// #docker.withRegistry('andreluizkbca/get-start-react', 'docker-hub') {
/*
git url: "[email protected]:andreluizmachado/get-start-react.git", credentialsId: 'github'
sh "git rev-parse HEAD > .git/commit-id"
def commit_id = readFile('.git/commit-id').trim()
println commit_id
stage "build"
def app = docker.build "get-start-react"
stage "publish"
app.push 'master'
app.push "${commit_id}"
*/
// #}
}