Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. import hudson.model.*
  2. import hudson.EnvVars
  3. @Library('gsp-pipeline-library')_
  4.  
  5. stage('Tag SVN') {
  6. node('build01') {
  7. if ("${env.TagBuild}" == 'true'){
  8. bat 'svn copy -r HEAD %RepoURL% %RepoTagsURL%/%RepoTagName% -m "Tagging at Revision"'
  9. }
  10. }
  11. }
  12.  
  13. stage('Checkout') {
  14. node('build01') {
  15. if ("${env.Build_APP}" == 'true') {
  16. ws('c:\Dev') {
  17. svnCheckout('${RepoURL}')
  18. }
  19. }
  20. }
  21.  
  22. }
  23.  
  24. stage('Build and Import DAR') {
  25. node('build01') {
  26. if ("${env.Build_APP}" == 'true') {
  27. visBuild3("C:\Dev\scripts\Component.bld")
  28. }
  29.  
  30. }
  31. }
  32.  
  33. stage('Deploy') {
  34. node('build01') {
  35. if ("${env.Build_Common}" == 'true') {
  36. script {
  37. env.buildNumber = "${TagVersion}.Build${env.BUILD_NUMBER}_${ComponentTagName}"
  38. env.packageid = "Applications/common/${env.buildNumber}"
  39.  
  40. }
  41. xldDeploy serverCredentials: 'username', environmentId: 'Environments/AWS/Dev_Test_Envs/SysTest1/SysTest1_WildFly', packageId: env.packageid
  42. }
  43. }
  44. }
  45. }
  46.  
  47. svnCheckout('${RepoURL}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement