build with docker libs

This commit is contained in:
Kameron Kenny 2024-06-26 12:19:05 -04:00
parent 472e632f89
commit b16e84a559
No known key found for this signature in database
GPG Key ID: E5006629839D2276
1 changed files with 3 additions and 2 deletions

3
Jenkinsfile vendored
View File

@ -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 {