From 4782caeaee32168655f674878cbdd2276cfd8b86 Mon Sep 17 00:00:00 2001 From: Kameron Kenny <1267885+kkenny@users.noreply.github.com> Date: Wed, 26 Jun 2024 12:53:18 -0400 Subject: [PATCH] build with docker libs --- Jenkinsfile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 30f00a3..e3ab50e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,12 +2,12 @@ pipeline { agent { node { label 'pi501.in.thelinuxpro.net' + dockerfile true } } stages { stage("verify tooling") { - node { steps { sh ''' docker version @@ -15,11 +15,9 @@ pipeline { docker compose version ''' } - } } stage('Build telegraf') { - node { steps { script { docker.withRegistry('http://docker-registry1.in.thelinuxpro.net:5000') @@ -29,19 +27,15 @@ pipeline { telegrafImage.push('latest') } } - } } stage('Create contexts') { - node { steps { sh 'docker context ls | grep pi502 || docker context create pi502 --docker "host=ssh://pi502.in.thelinuxpro.net"' } - } } stage('Start container') { - node { steps { script { def status_s = sh(returnStatus: true, script: 'grep $(docker --context pi502 compose ps | tail -n1 | awk \'{ print $2 }\') docker-compose.yml') @@ -55,7 +49,6 @@ pipeline { sh 'docker --context pi502 compose ps' } } - } } }