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 { pipeline {
agent { agent {
label 'pi501.in.thelinuxpro.net' label 'pi501.in.thelinuxpro.net'
dockerfile true
} }
stages { stages {
@ -17,6 +16,7 @@ pipeline {
stage('Build telegraf') { stage('Build telegraf') {
steps { steps {
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}")
@ -24,6 +24,7 @@ pipeline {
telegrafImage.push('latest') telegrafImage.push('latest')
} }
} }
}
stage('Create contexts') { stage('Create contexts') {
steps { steps {