build with docker libs
This commit is contained in:
parent
e47b588af0
commit
3d563cb219
|
@ -1,7 +1,9 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
|
node {
|
||||||
label 'pi501.in.thelinuxpro.net'
|
label 'pi501.in.thelinuxpro.net'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage("verify tooling") {
|
stage("verify tooling") {
|
||||||
|
@ -14,9 +16,10 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
node {
|
||||||
stage('Build telegraf') {
|
stage('Build telegraf') {
|
||||||
steps {
|
steps {
|
||||||
node {
|
script {
|
||||||
docker.withRegistry('http://docker-registry1.in.thelinuxpro.net:5000')
|
docker.withRegistry('http://docker-registry1.in.thelinuxpro.net:5000')
|
||||||
def dockerfile = 'Dockerfile'
|
def dockerfile = 'Dockerfile'
|
||||||
def telegrafImage = docker.build("telegraf:${env.BUILD_ID}", "-f ${dockerfile}")
|
def telegrafImage = docker.build("telegraf:${env.BUILD_ID}", "-f ${dockerfile}")
|
||||||
|
@ -51,4 +54,4 @@ pipeline {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue