build with docker libs
This commit is contained in:
parent
472e632f89
commit
b16e84a559
|
@ -1,7 +1,6 @@
|
|||
pipeline {
|
||||
agent {
|
||||
label 'pi501.in.thelinuxpro.net'
|
||||
dockerfile true
|
||||
}
|
||||
|
||||
stages {
|
||||
|
@ -17,6 +16,7 @@ pipeline {
|
|||
|
||||
stage('Build telegraf') {
|
||||
steps {
|
||||
script{
|
||||
docker.withRegistry('http://docker-registry1.in.thelinuxpro.net:5000')
|
||||
def dockerfile = 'Dockerfile'
|
||||
def telegrafImage = docker.build("telegraf:${env.BUILD_ID}", "-f ${dockerfile}")
|
||||
|
@ -24,6 +24,7 @@ pipeline {
|
|||
telegrafImage.push('latest')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Create contexts') {
|
||||
steps {
|
||||
|
|
Loading…
Reference in New Issue