build with docker libs
This commit is contained in:
parent
217f56ea96
commit
1dda38d170
|
@ -7,6 +7,7 @@ pipeline {
|
|||
|
||||
stages {
|
||||
stage("verify tooling") {
|
||||
node {
|
||||
steps {
|
||||
sh '''
|
||||
docker version
|
||||
|
@ -15,9 +16,10 @@ pipeline {
|
|||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
node {
|
||||
stage('Build telegraf') {
|
||||
node {
|
||||
steps {
|
||||
script {
|
||||
docker.withRegistry('http://docker-registry1.in.thelinuxpro.net:5000')
|
||||
|
@ -30,16 +32,16 @@ pipeline {
|
|||
}
|
||||
}
|
||||
|
||||
node {
|
||||
stage('Create contexts') {
|
||||
node {
|
||||
steps {
|
||||
sh 'docker context ls | grep pi502 || docker context create pi502 --docker "host=ssh://pi502.in.thelinuxpro.net"'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
node {
|
||||
stage('Start container') {
|
||||
node {
|
||||
steps {
|
||||
script {
|
||||
def status_s = sh(returnStatus: true, script: 'grep $(docker --context pi502 compose ps | tail -n1 | awk \'{ print $2 }\') docker-compose.yml')
|
||||
|
|
Loading…
Reference in New Issue