diff options
author | Christian Segundo | 2024-07-23 21:43:05 +0200 |
---|---|---|
committer | Christian Segundo | 2024-07-23 21:43:05 +0200 |
commit | 362af4e16d7cdfa1512a6f2f154f055907b4d900 (patch) | |
tree | f0e8817df1cad49bd466c60016cdd8b70913690c /Jenkinsfile | |
parent | 076b6aefd5b17cccc34cc403b7b4f2ba4f093a57 (diff) | |
download | transmission-hacks-362af4e16d7cdfa1512a6f2f154f055907b4d900.tar.gz |
add ci
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..1293357 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,24 @@ +String cron_string = BRANCH_NAME == "master" ? "@weekly" : "" + +pipeline { + agent any + triggers { cron(cron_string) } + options { ansiColor('xterm') } + stages { + stage('Build') { steps { sh 'bash .scripts.d/20-build.sh' } } + stage('Test') { steps { sh 'bash .scripts.d/30-test.sh' } } + stage('Publish') { + environment { DOCKERHUB_TOKEN = credentials('DOCKERHUB_TOKEN') } + steps { sh 'bash .scripts.d/40-publish.sh' } + } + } + post { + always { + junit 'build/reports/*.xml' + step([$class: 'Mailer', + notifyEveryUnstableBuild: true, + recipients: "christian+jenkins@segundo.io", + sendToIndividuals: true]) + } + } +} |