build with docker libs

This commit is contained in:
Kameron Kenny 2024-06-26 12:46:34 -04:00
parent e47b588af0
commit 3d563cb219
No known key found for this signature in database
GPG Key ID: E5006629839D2276
1 changed files with 36 additions and 33 deletions

7
Jenkinsfile vendored
View File

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