Sha256: 5b32a0c4b19bb4be141b882a8ecc95880f8653c1fa713b055cbcd91d916651ef
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
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' cobertura coberturaReportFile: 'spec/coverage/coverage.xml' sh 'cp spec/coverage/coverage.xml cobertura.xml' ccCoverage("cobertura", "github.com/cyberark/slosilo") } } stage('Publish to RubyGems') { agent { label 'executor-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.2 | Jenkinsfile |