From 21a48d3d4d739057138ac407dbc6a741103e55f7 Mon Sep 17 00:00:00 2001 From: richard Date: Sat, 6 Jun 2020 22:17:18 -0400 Subject: [PATCH] Jenkinsfile for renewing certs --- .../services/sslproxy/renew.Jenkinsfile | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 dockerfiles/services/sslproxy/renew.Jenkinsfile diff --git a/dockerfiles/services/sslproxy/renew.Jenkinsfile b/dockerfiles/services/sslproxy/renew.Jenkinsfile new file mode 100644 index 0000000..c3ffa73 --- /dev/null +++ b/dockerfiles/services/sslproxy/renew.Jenkinsfile @@ -0,0 +1,35 @@ +pipeline { + environment { + APP_NAME = 'sslproxy' + WORKDIR = 'dockerfiles/services/sslproxy' + } + + agent { label 'docker' } + options { + buildDiscarder(logRotator(numToKeepStr: '2')) + } + triggers { + cron('@monthly') + } + + stages { + stage('prepare') { + steps { + checkout scm + sh 'ls' + } + } + + stage('renew') { + steps { + dir(WORKDIR) { + withDockerRegistry(credentialsId: 'b11d7f1a-81ac-4daf-8842-56afc0d2370e', url: 'http://dkregistry.xai-corp.net:5000') { + sh "pwd" + sh "xai certbot renew" + } + } + } + } + + } +}