testing jenkins docker
This commit is contained in:
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@@ -6,21 +6,7 @@ pipeline {
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh "docker-compose build"
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
sh "docker-compose up -d"
|
||||
sh "ssh jenkins@s5000xvn echo 'Dupa dupa dupa'"
|
||||
sh "export DOCKER_HOST=tcp://jenkins@s5000xvn:22"
|
||||
sh "DOCKER_HOST=“tcp://jenkins@s5000xvn:22” docker-compose up -d"
|
||||
}
|
||||
}
|
||||
stage('Logs') {
|
||||
steps {
|
||||
sleep time: 1, unit: 'MINUTES'
|
||||
sh 'docker logs klaus'
|
||||
sh "docker context create DEV ‐‐docker “host=ssh://jenkins@s5000xvn:22”"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user