Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env groovy
- import hudson.model.*
- import hudson.Util;
- import org.codehaus.groovy.runtime.StackTraceUtils
- contentDir = "${JENKINS_HOME}/userContent"
- USAT_ENVIRONMENT = "DEV"
- USAT_GIT_BRANCH = "master"
- USAT_GIT_CHECKOUT = "Y"
- USAT_VERSION = "${USAT_GIT_BRANCH}-$BUILD_TIMESTAMP"
- gitRepo = 'file:///opt/USAT/git/NetworkServices.git'
- def runExtension = ''
- def prepareSteps = [:]
- def buildSteps = [:]
- def veracodeUploadSteps = [:]
- def veracodeRescanSteps = [:]
- def stackTrace = null
- try {
- node {
- stage ('Veracode Upload') {
- //veracodeDynamicRescan applicationName: 'Veracode_nightly', dvrEnabled: true, pHost: '', pPassword: '',pUser: '', useIDkey: true, vid: '3a8b05b51c1ab7e64f226d963300919b',vkey: '8ee60f259d551a663c84e153f4cc98efa412e98636b3570c61b8254e40146023f4b897b3464ed541ac220320d8ab7a49b7797f5f4824f82b8a74c8aaee36023e',vpassword: '', vuser: ''
- veracode applicationName: 'Veracode_nightly', uploadExcludesPattern: '', uploadIncludesPattern: '**/**.tar.gz', createSandbox: true, criticality: 'VeryHigh', debug: true, fileNamePattern: '', replacementPattern: '', sandboxName: '$projectname', scanExcludesPattern: '', scanIncludesPattern: '', scanName: '$timestamp', teams: '', useIDkey: true, version:'$USAT_VERSION', vid: '3a8b05b51c1ab7e64f226d963300919b', vkey: '8ee60f259d551a663c84e153f4cc98efa412e98636b3570c61b8254e40146023f4b897b3464ed541ac220320d8ab7a49b7797f5f4824f82b8a74c8aaee36023e', vpassword: '', vuser: ''
- }
- }
- } catch (exc) {
- echo exc.toString()
- } finally {
- if (currentBuild.result == null || currentBuild.result.trim() == '') {
- currentBuild.result = 'SUCCESS'
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement