Advertisement
andreterceiro

Untitled

Oct 23rd, 2020
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. try {
  2. def requestBody = Json.stringify([
  3. trigger: [
  4. batch: true/*,
  5. branches: [
  6. include:
  7. /*- dev_integracao
  8. - release
  9. - master
  10. /*- refs/tags/develop/*
  11. - refs/tags/release/*
  12. - refs/tags/production/*
  13. ] */
  14. ],
  15. variables: "",
  16. "pool": [
  17. "id": 8,
  18. "name": "Default",
  19. "isHosted": true
  20. ],
  21. retentionRules: [
  22. branches: [
  23. "+refs/heads/*"
  24. ],
  25. daysToKeep: 10,
  26. minimumToKeep: 1,
  27. deleteBuildRecord: true,
  28. deleteTestResults: true,
  29. buildNumberFormat: "\$(date:yyyyMMdd)\$(rev:.r)",
  30. jobAuthorizationScope: 1,
  31. jobTimeoutInMinutes: 60,
  32. jobCancelTimeoutInMinutes: 5,
  33. ],
  34. process: [
  35. yamlFilename: ".az-devops/pipeline-azure.yml",
  36. type: 2
  37. ],
  38. repository: [
  39. properties: [
  40. labelSources: 6,
  41. labelSourcesFormat: 0,
  42. reportBuildStatus: true,
  43. fetchDepth: 0,
  44. cleanOptions: 3,
  45. gitLfsSupport: false,
  46. skipSyncSource: false,
  47. checkoutNestedSubmodules: false
  48. ],
  49. id: repositoryId,
  50. type: "TfsGit",
  51. name: repositoryId,
  52. defaultBranch: "refs/heads/dev_integracao",
  53. clean: true,
  54. checkoutSubmodules: false,
  55. ],
  56. name: repositoryId + build.threadLocalRandomSeed,
  57. path: "\\hefesto\\",
  58. type: 2,
  59. project: [
  60. id: "47b49adc-f41d-4c70-861e-68157bc8794f"
  61. ],
  62. queue : [
  63. pool : [
  64. id : 1,
  65. name : "Default",
  66. isHosted: true
  67. ]
  68. ],
  69. pool: [
  70. vmImage: 'AWS-Pool'
  71. ]
  72. ])
  73.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement