Sha256: 5312a5a46ac0d96576d90fc3c082cc6c385255584a7b551e6d667331f62a6976
Contents?: true
Size: 961 Bytes
Versions: 1
Compression:
Stored size: 961 Bytes
Contents
#!/usr/bin/env groovy pipeline { agent { label 'executor-v2' } options { timestamps() buildDiscarder(logRotator(daysToKeepStr: '30')) } stages { stage('Test') { steps { sh './test.sh' junit 'spec/reports/*.xml' } } stage('Publish to RubyGems') { agent { label 'releaser-v2' } when { allOf { branch 'master' expression { boolean publish = false try { timeout(time: 5, unit: 'MINUTES') { input(message: 'Publish to RubyGems?') publish = true } } catch (final ignore) { publish = false } return publish } } } steps { checkout scm sh './publish-rubygem.sh' deleteDir() } } } post { always { cleanupAndNotify(currentBuild.currentResult) } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slosilo-2.2.1 | Jenkinsfile |