build with docker libs

This commit is contained in:
Kameron Kenny 2024-06-26 13:00:50 -04:00
parent 4b3d0e3c7b
commit d41a8a2c52
No known key found for this signature in database
GPG Key ID: E5006629839D2276
1 changed files with 6 additions and 5 deletions

3
Jenkinsfile vendored
View File

@ -19,7 +19,7 @@ pipeline {
stage('Build telegraf') { stage('Build telegraf') {
steps { steps {
script { 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}")
telegrafImage.push() telegrafImage.push()
@ -27,6 +27,7 @@ pipeline {
} }
} }
} }
}
stage('Create contexts') { stage('Create contexts') {
steps { steps {