Sha256: 7eae8d8869645ecffd5633068327030eded1d5c84403734e9c6f257457488836
Contents?: true
Size: 978 Bytes
Versions: 3
Compression:
Stored size: 978 Bytes
Contents
#!/usr/bin/env groovy library("govuk") REPOSITORY = 'govuk_schemas' node { try { stage('Checkout') { checkout scm } stage('Clean') { govuk.cleanupGit() govuk.mergeMasterBranch() } stage("Set up content schema dependency") { govuk.contentSchemaDependency() } stage('Bundle') { echo 'Bundling' sh("bundle install --path ${JENKINS_HOME}/bundles/${JOB_NAME}") } stage('Linter') { govuk.rubyLinter() } stage('Tests') { govuk.setEnvar('RAILS_ENV', 'test') govuk.runTests('spec') } if(env.BRANCH_NAME == "master") { stage('Publish Gem') { govuk.publishGem(REPOSITORY, env.BRANCH_NAME) } } } catch (e) { currentBuild.result = 'FAILED' step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'govuk-ci-notifications@digital.cabinet-office.gov.uk', sendToIndividuals: true]) throw e } }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
govuk_schemas-4.0.0 | Jenkinsfile |
govuk_schemas-3.3.0 | Jenkinsfile |
govuk_schemas-3.2.0 | Jenkinsfile |