From aa7dec07b489dd532e5294e1e3fe59bd6d5bee92 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sun, 7 Apr 2024 21:23:36 +0200 Subject: start building again --- Jenkinsfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Jenkinsfile (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..861d020 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,29 @@ +String cronString = BRANCH_NAME == 'master' ? '@weekly' : '' + +pipeline { + agent any + triggers { cron(cronString) } + options { ansiColor('xterm') } + stages { + stage('Check') { + agent { + docker { + image 'ghcr.io/super-linter/super-linter:latest' + args '--entrypoint ""' + } + } + steps { sh 'bash .scripts.d/10-check.sh' } + } + stage('Publish') { + environment { DOCKERHUB_TOKEN = credentials('DOCKERHUB_TOKEN') } + parallel { + stage('stable') { + steps { sh 'bash .scripts.d/20-publish.sh stable' } + } + stage('nightly') { + steps { sh 'bash .scripts.d/20-publish.sh nightly' } + } + } + } + } +} -- cgit v1.2.3