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