Advertisement
Guest User

Untitled

a guest
Apr 7th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. #!/usr/bin/env groovy
  2.  
  3. import hudson.model.*
  4. import hudson.Util;
  5. import org.codehaus.groovy.runtime.StackTraceUtils
  6.  
  7. contentDir = "${JENKINS_HOME}/userContent"
  8. USAT_ENVIRONMENT = "DEV"
  9. USAT_GIT_BRANCH = "master"
  10. USAT_GIT_CHECKOUT = "Y"
  11. USAT_VERSION = "${USAT_GIT_BRANCH}-$BUILD_TIMESTAMP"
  12. gitRepo = 'file:///opt/USAT/git/NetworkServices.git'
  13. def runExtension = ''
  14. def prepareSteps = [:]
  15. def buildSteps = [:]
  16. def veracodeUploadSteps = [:]
  17. def veracodeRescanSteps = [:]
  18. def stackTrace = null
  19. try {
  20. node {
  21.  
  22.  
  23. stage ('Veracode Upload') {
  24. //veracodeDynamicRescan applicationName: 'Veracode_nightly', dvrEnabled: true, pHost: '', pPassword: '',pUser: '', useIDkey: true, vid: '3a8b05b51c1ab7e64f226d963300919b',vkey: '8ee60f259d551a663c84e153f4cc98efa412e98636b3570c61b8254e40146023f4b897b3464ed541ac220320d8ab7a49b7797f5f4824f82b8a74c8aaee36023e',vpassword: '', vuser: ''
  25. 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: ''
  26.  
  27. }
  28.  
  29. }
  30.  
  31. } catch (exc) {
  32. echo exc.toString()
  33. } finally {
  34. if (currentBuild.result == null || currentBuild.result.trim() == '') {
  35. currentBuild.result = 'SUCCESS'
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement