Sha256: 1de75285eeb5c144a028779fc14ecbabdc7563774afd901b2366ea5c0fd26812

Contents?: true

Size: 815 Bytes

Versions: 1

Compression:

Stored size: 815 Bytes

Contents

pipeline {
  agent any
  stages {
    stage('bundle') {
      steps {
        sh 'bundle install'
      }
    }
    stage('veracode') {
      when {
        branch 'master'
      }
      steps {
        withCredentials([string(credentialsId: 'SRCCLR_API_TOKEN', variable: 'SRCCLR_API_TOKEN')]) {
          sh '''
          set +x
          echo "$SRCCLR_API_TOKEN"
          curl -HsSL "Token: $SRCCLR_API_TOKEN"  https://download.sourceclear.com/ci.sh | sh
          '''
        }
      }
    }
    stage('sanity') {
      steps {
        sh 'bundle exec bundle-audit check --update --ignore CVE-2018-3760 CVE-2018-16471'
      }
    }
    stage('tests') {
      steps {
        sh 'RACK_ENV=test bundle exec rspec spec --format progress'
        sh 'RACK_ENV=test bundle exec rake test:units'
      }
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
heartland_portico-4.0.0 Jenkinsfile