Guest User

Untitled

a guest
Nov 25th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.66 KB | None | 0 0
  1. phases:
  2. - phase: CD
  3. queue: LEP
  4. steps:
  5. - task: PowerShell@1
  6. displayName: ExtConfigs_PreBuild.ps1
  7. inputs:
  8. scriptType: filePath
  9. scriptName: "$(repo.BuildScripts)/ExtConfigs_PreBuild.ps1"
  10. arguments: ''
  11.  
  12. - task: PowerShell@1
  13. displayName: ListVariables.ps1
  14. inputs:
  15. scriptType: filePath
  16. scriptName: "$(repo.BuildScripts)/ListVariables.ps1"
  17. arguments: ''
  18.  
  19. - task: PowerShell@1
  20. displayName: ApplyVersionToAssemblies.ps1
  21. inputs:
  22. scriptType: filePath
  23. scriptName: "$(repo.BuildScripts)/ApplyVersionToAssemblies.ps1"
  24. arguments: ''
  25.  
  26. - task: NugetRestore@2
  27. displayName: NuGet restore
  28. inputs:
  29. command: restore
  30. solution: "**/*.sln"
  31. searchPatternPush: "$(Build.ArtifactStagingDirectory)/*.nupkg"
  32. nuGetFeedType: internal
  33. feedPublish: ''
  34. allowPackageConflicts: 'false'
  35. externalEndpoint: ''
  36. searchPatternPack: "**/*.csproj"
  37. configurationToPack: "$(BuildConfiguration)"
  38. outputDir: "$(Build.ArtifactStagingDirectory)"
  39. arguments: ''
  40. selectOrConfig: select
  41. feedRestore:
  42. includeNuGetOrg: 'true'
  43. nugetConfigPath: ''
  44. externalEndpoints: ''
  45. noCache: 'true'
  46. packagesDirectory: ''
  47. verbosityRestore: Detailed
  48. verbosityPush: Detailed
  49. versioningScheme: 'off'
  50. includeReferencedProjects: 'false'
  51. versionEnvVar: ''
  52. requestedMajorVersion: '1'
  53. requestedMinorVersion: '0'
  54. requestedPatchVersion: '0'
  55. packTimezone: utc
  56. includeSymbols: 'false'
  57. buildProperties: ''
  58. verbosityPack: Detailed
  59. - task: VSBuild@1
  60. displayName: Build solution CompanyName.LEP.ContentDelivery.sln
  61. inputs:
  62. solution: "$(repo.)/CompanyName.LEP.ContentDelivery/CompanyName.LEP.ContentDelivery.sln"
  63. vsVersion: '15.0'
  64. msbuildArgs: "/p:OutDir=$(Build.StagingDirectory) /p:LEPloyOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true"
  65. : Any CPU
  66. configuration: Release
  67. clean: 'false'
  68. maximumCpuCount: 'false'
  69. restoreNugetPackages: 'false'
  70. msbuildArchitecture: x86
  71. logProjectEvents: 'true'
  72. createLogFile: 'false'
  73.  
  74. - task: VSTest@2
  75. displayName: Test Assemblies CompanyName.LEP.ContentDelivery
  76. inputs:
  77. testSelector: testAssemblies
  78. testAssemblyVer2: "**\\*test*.dll\n!**\\obj\\**"
  79. testPlan: ''
  80. testSuite: ''
  81. testConfiguration: ''
  82. tcmTestRun: "$(test.RunId)"
  83. searchFolder: "$(Build.StagingDirectory)"
  84. testFiltercriteria: TestCategory!=Database&TestCategory!=Integration
  85. runOnlyImpactedTests: 'false'
  86. runAllTestsAfterXBuilds: '50'
  87. uiTests: 'false'
  88. vstestLocationMethod: version
  89. vsTestVersion: latest
  90. vstestLocation: ''
  91. runSettingsFile: "$(repo.)/CompanyName.LEP.ContentDelivery/CompanyName.LEP.ContentDelivery.runsettings"
  92. overrideTestrunParameters: ''
  93. pathtoCustomTestAdapters: ''
  94. runInParallel: 'false'
  95. runTestsInIsolation: 'false'
  96. codeCoverageEnabled: 'true'
  97. otherConsoleOptions: ''
  98. distributionBatchType: basedOnTestCases
  99. batchingBasedOnAgentsOption: autoBatchSize
  100. customBatchSizeValue: '10'
  101. batchingBasedOnExecutionTimeOption: autoBatchSize
  102. customRunTimePerBatchValue: '60'
  103. dontDistribute: 'false'
  104. testRunTitle: CompanyName.LEP.ContentDelivery Tests w Runsettings
  105. : Any CPU
  106. configuration: Release
  107. publishRunAttachments: 'true'
  108.  
  109. - task: CopyFiles@2
  110. displayName: 'Copy Files to: $(Build.StagingDirectory)/CompanyName.LEP.ContentDelivery.Web.Host'
  111. inputs:
  112. SourceFolder: "$(repo.)/CompanyName.LEP.ContentDelivery/CompanyName.LEP.ContentDelivery.Web.Host"
  113. Contents: Web.token.config
  114. TargetFolder: "$(Build.StagingDirectory)/CompanyName.LEP.ContentDelivery.Web.Host"
  115. CleanTargetFolder: 'false'
  116. OverWrite: 'false'
  117. flattenFolders: 'false'
  118.  
  119. - task: CopyPublishBuildArtifacts@1
  120. displayName: 'Copy Publish Artifact: $(artifactName.ContentDelivery)'
  121. inputs:
  122. CopyRoot: "$(Build.StagingDirectory)"
  123. Contents: "**\\*"
  124. ArtifactName: "$(artifactName.ContentDelivery)"
  125. ArtifactType: FilePath
  126. TargetPath: "\\\\$(Agent.Machinename)\\_drop\\$(octo.PackagePrefix)\\$(Build.BuildId)"
  127.  
  128. - task: OctopusPack@2
  129. displayName: Package $(octo.PackagePrefix)$(artifactName.ContentDelivery)
  130. inputs:
  131. PackageId: "$(octo.PackagePrefix)$(artifactName.ContentDelivery)"
  132. PackageFormat: NuPkg
  133. PackageVersion: "$(Version)"
  134. SourcePath: "\\\\$(Agent.Machinename)\\_drop\\$(octo.PackagePrefix)\\$(Build.BuildId)\\$(artifactName.ContentDelivery)"
  135. OutputPath: "\\\\$(Agent.Machinename)\\_packages"
  136. Overwrite: 'false'
  137. ListFiles: 'false'
  138.  
  139. - task: OctopusPush@2
  140. displayName: Push Packages to Octopus
  141. inputs:
  142. OctoConnectedServiceName:
  143. Package: "\\\\$(Agent.Machinename)\\_packages\\$(octo.PackagePrefix)$(artifactName.ContentDelivery).$(Version).nupkg"
  144. Replace: 'False'
  145.  
  146. - phase: Bus
  147. queue: LEP
  148. steps:
  149. - task: PowerShell@1
  150. displayName: ExtConfigs_PreBuild.ps1
  151. inputs:
  152. scriptType: filePath
  153. scriptName: "$(repo.BuildScripts)/ExtConfigs_PreBuild.ps1"
  154. arguments: ''
  155.  
  156. - task: PowerShell@1
  157. displayName: ListVariables.ps1
  158. inputs:
  159. scriptType: filePath
  160. scriptName: "$(repo.BuildScripts)/ListVariables.ps1"
  161. arguments: ''
  162.  
  163. - task: PowerShell@1
  164. displayName: ApplyVersionToAssemblies.ps1
  165. inputs:
  166. scriptType: filePath
  167. scriptName: "$(repo.BuildScripts)/ApplyVersionToAssemblies.ps1"
  168. arguments: ''
  169.  
  170. - task: NugetRestore@2
  171. displayName: NuGet restore
  172. inputs:
  173. command: restore
  174. solution: "**/*.sln"
  175. searchPatternPush: "$(Build.ArtifactStagingDirectory)/*.nupkg"
  176. nuGetFeedType: internal
  177. feedPublish: ''
  178. allowPackageConflicts: 'false'
  179. externalEndpoint: ''
  180. searchPatternPack: "**/*.csproj"
  181. configurationToPack: "$(BuildConfiguration)"
  182. outputDir: "$(Build.ArtifactStagingDirectory)"
  183. arguments: ''
  184. selectOrConfig: select
  185. feedRestore:
  186. includeNuGetOrg: 'true'
  187. nugetConfigPath: ''
  188. externalEndpoints: ''
  189. noCache: 'true'
  190. packagesDirectory: ''
  191. verbosityRestore: Detailed
  192. verbosityPush: Detailed
  193. versioningScheme: 'off'
  194. includeReferencedProjects: 'false'
  195. versionEnvVar: ''
  196. requestedMajorVersion: '1'
  197. requestedMinorVersion: '0'
  198. requestedPatchVersion: '0'
  199. packTimezone: utc
  200. includeSymbols: 'false'
  201. buildProperties: ''
  202. verbosityPack: Detailed
  203. - task: VSBuild@1
  204. displayName: Build solution CompanyName.LEP.ServiceBus.sln
  205. inputs:
  206. solution: "$(repo.)/CompanyName.LEP.ServiceBus/CompanyName.LEP.ServiceBus.sln"
  207. vsVersion: '15.0'
  208. msbuildArgs: "/p:OutDir=$(Build.StagingDirectory) /p:LEPloyOnBuild=true /p:WebPublishMethod=Package
  209. /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true"
  210. : Any CPU
  211. configuration: Release
  212. clean: 'false'
  213. maximumCpuCount: 'false'
  214. restoreNugetPackages: 'false'
  215. msbuildArchitecture: x86
  216. logProjectEvents: 'true'
  217. createLogFile: 'false'
  218.  
  219. - task: VSTest@2
  220. displayName: Test Assemblies CompanyName.LEP.ServiceBus
  221. inputs:
  222. testSelector: testAssemblies
  223. testAssemblyVer2: "**\\*test*.dll\n!**\\obj\\**"
  224. testPlan: ''
  225. testSuite: ''
  226. testConfiguration: ''
  227. tcmTestRun: "$(test.RunId)"
  228. searchFolder: "$(Build.StagingDirectory)"
  229. testFiltercriteria: TestCategory!=Database&TestCategory!=Integration
  230. runOnlyImpactedTests: 'false'
  231. runAllTestsAfterXBuilds: '50'
  232. uiTests: 'false'
  233. vstestLocationMethod: version
  234. vsTestVersion: latest
  235. vstestLocation: ''
  236. runSettingsFile: ''
  237. overrideTestrunParameters: ''
  238. runInParallel: 'false'
  239. runTestsInIsolation: 'false'
  240. pathtoCustomTestAdapters: ''
  241. codeCoverageEnabled: 'true'
  242. otherConsoleOptions: ''
  243. testRunTitle: CompanyName.LEP.ServiceBus Tests
  244. : Any CPU
  245. configuration: Release
  246. publishRunAttachments: 'true'
  247.  
  248. - task: PowerShell@1
  249. displayName: BUS_MoveServiceBus_PostBuild.ps1
  250. inputs:
  251. scriptType: filePath
  252. scriptName: "$(repo.BuildScripts)/BUS_MoveServiceBus_PostBuild.ps1"
  253. arguments: -SourceDirectory "$(Build.StagingDirectory)"
  254.  
  255. - task: CopyFiles@2
  256. displayName: 'Copy Files to: CompanyName.LEP.Service.Host'
  257. inputs:
  258. SourceFolder: "$(repo.)/CompanyName.LEP/CompanyName.LEP.Service.Host"
  259. Contents: Web.token.config
  260. TargetFolder: "$(Build.StagingDirectory)/CompanyName.LEP.Service.Host"
  261. CleanTargetFolder: 'false'
  262. OverWrite: 'false'
  263. flattenFolders: 'false'
  264.  
  265. - task: PowerShell@1
  266. displayName: BUS_CopyNeuron_Source.ps1
  267. inputs:
  268. scriptType: filePath
  269. scriptName: "$(repo.BuildScripts)/BUS_CopyNeuron_Source.ps1"
  270. arguments: -SourceDirectory "$(Build.SourcesDirectory)\$(map.)\CompanyName.LEP.ServiceBus\CompanyName.LEP.Neuron" -TargetDirectory "$(Build.StagingDirectory)"
  271.  
  272. - task: CopyPublishBuildArtifacts@1
  273. displayName: 'Copy Publish Artifact: $(artifactName.ServiceBus)'
  274. inputs:
  275. CopyRoot: "$(Build.StagingDirectory)"
  276. Contents: "**\\*"
  277. ArtifactName: "$(artifactName.ServiceBus)"
  278. ArtifactType: FilePath
  279. TargetPath: "\\\\$(Agent.Machinename)\\_drop\\$(octo.PackagePrefix)\\$(Build.BuildId)"
  280.  
  281. - task: MSBuild@1
  282. displayName: Build CompanyName.LEP.Service.Host.csproj
  283. inputs:
  284. solution: $(Build.SourcesDirectory)\$(map.)\CompanyName.LEP\CompanyName.LEP.Service.Host\CompanyName.LEP.Service.Host.csproj
  285. msbuildLocationMethod: version
  286. msbuildVersion: '15.0'
  287. msbuildArchitecture: x64
  288. : AnyCPU
  289. configuration: "Release"
  290. msbuildArguments: /nologo /noconsolelogger /nr:False /fl /flp:logfile="\\$(Agent.Machinename)\_drop\$(octo.PackagePrefix)\$(Build.BuildId)\-Bus\CompanyName.LEP.Service.Host.log;encoding=Unicode;verbosity=normal" /p:LEPloyOnBuild=True /p:LEPloyTarget=Package /p:AllowUntrustedCertificate=True /p:UseWPP_CopyWebApplication=true /p:PipelineLEPendsOnBuild=false /p:LEPloyIisAppPath=CompanyName.LEP.Service.Host /p:OutDir="\\$(Agent.Machinename)\_drop\$(octo.PackagePrefix)\$(Build.BuildId)\-Bus\WebProjects"
  291. clean: 'false'
  292. maximumCpuCount: 'false'
  293.  
  294. - task: OctopusPack@2
  295. displayName: Package
  296. inputs:
  297. PackageId: "$(octo.PackagePrefix)$(artifactName.ServiceBus)"
  298. PackageFormat: NuPkg
  299. PackageVersion: "$(Version)"
  300. SourcePath: "\\\\$(Agent.Machinename)\\_drop\\$(octo.PackagePrefix)\\$(Build.BuildId)\\$(artifactName.ServiceBus)"
  301. OutputPath: "\\\\$(Agent.Machinename)\\_packages"
  302. NuGetAuthor: ''
  303. NuGetTitle: ''
  304. NuGetDescription: ''
  305. NuGetReleaseNotes: ''
  306. NuGetReleaseNotesFile: ''
  307. Include: ''
  308. Overwrite: 'false'
  309. ListFiles: 'false'
  310.  
  311. - task: OctopusPush@2
  312. displayName: Push Packages to Octopus
  313. inputs:
  314. OctoConnectedServiceName:
  315. Package: "\\\\$(Agent.Machinename)\\_packages\\$(octo.PackagePrefix)$(artifactName.ServiceBus).$(Version).nupkg"
  316. Replace: 'true'
  317.  
  318. - phase: Etl
  319. queue: LEP
  320. steps:
  321. - task: PowerShell@1
  322. displayName: ExtConfigs_PreBuild.ps1
  323. inputs:
  324. scriptType: filePath
  325. scriptName: "$(repo.BuildScripts)/ExtConfigs_PreBuild.ps1"
  326. arguments: ''
  327.  
  328. - task: PowerShell@1
  329. displayName: ListVariables.ps1
  330. inputs:
  331. scriptType: filePath
  332. scriptName: "$(repo.BuildScripts)/ListVariables.ps1"
  333. arguments: ''
  334.  
  335. - task: PowerShell@1
  336. displayName: ApplyVersionToAssemblies.ps1
  337. inputs:
  338. scriptType: filePath
  339. scriptName: "$(repo.BuildScripts)/ApplyVersionToAssemblies.ps1"
  340. arguments: ''
  341.  
  342. - task: NugetRestore@2
  343. displayName: NuGet restore
  344. inputs:
  345. command: restore
  346. solution: "**/*.sln"
  347. searchPatternPush: "$(Build.ArtifactStagingDirectory)/*.nupkg"
  348. nuGetFeedType: internal
  349. feedPublish: ''
  350. allowPackageConflicts: 'false'
  351. externalEndpoint: ''
  352. searchPatternPack: "**/*.csproj"
  353. configurationToPack: "$(BuildConfiguration)"
  354. outputDir: "$(Build.ArtifactStagingDirectory)"
  355. arguments: ''
  356. selectOrConfig: select
  357. feedRestore:
  358. includeNuGetOrg: 'true'
  359. nugetConfigPath: ''
  360. externalEndpoints: ''
  361. noCache: 'true'
  362. packagesDirectory: ''
  363. verbosityRestore: Detailed
  364. verbosityPush: Detailed
  365. versioningScheme: 'off'
  366. includeReferencedProjects: 'false'
  367. versionEnvVar: ''
  368. requestedMajorVersion: '1'
  369. requestedMinorVersion: '0'
  370. requestedPatchVersion: '0'
  371. packTimezone: utc
  372. includeSymbols: 'false'
  373. buildProperties: ''
  374. verbosityPack: Detailed
  375. - task: VSBuild@1
  376. displayName: Build solution CompanyName.LEP.Etl.sln
  377. inputs:
  378. solution: "$(repo.)/CompanyName.LEP.Etl/CompanyName.LEP.Etl.sln"
  379. vsVersion: '15.0'
  380. msbuildArgs: "/p:OutDir=$(Build.StagingDirectory) /p:LEPloyOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:CmdLineInMemoryStorage=true"
  381. : Any CPU
  382. configuration: "$(configuration.Etl)"
  383. clean: 'false'
  384. maximumCpuCount: 'false'
  385. restoreNugetPackages: 'false'
  386. msbuildArchitecture: x86
  387. logProjectEvents: 'true'
  388. createLogFile: 'false'
  389.  
  390. - task: VSBuild@1
  391. displayName: Build solution CompanyName.LEP.Etl.Host.csproj
  392. inputs:
  393. solution: "$(repo.)/CompanyName.LEP.Etl/CompanyName.LEP.Etl.Host/CompanyName.LEP.Etl.Host.csproj"
  394. vsVersion: '15.0'
  395. msbuildArgs: /p:OutDir=$(Build.StagingDirectory) /p:LEPloyOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PublishProfile="$(Build.SourcesDirectory)\$(map.)\CompanyName.LEP.Etl\CompanyName.LEP.Etl.Host\Properties\PublishProfiles\CompanyName_Build.pubxml"
  396. : AnyCPU
  397. configuration: "$(configuration.Etl)"
  398. clean: 'false'
  399. maximumCpuCount: 'false'
  400. restoreNugetPackages: 'false'
  401. msbuildArchitecture: x86
  402. logProjectEvents: 'true'
  403. createLogFile: 'false'
  404.  
  405. - task: VSTest@2
  406. displayName: Test Assemblies CompanyName.LEP.Etl
  407. inputs:
  408. testSelector: testAssemblies
  409. testAssemblyVer2: "**\\*test*.dll\n!**\\obj\\**"
  410. testPlan: ''
  411. testSuite: ''
  412. testConfiguration: ''
  413. tcmTestRun: "$(test.RunId)"
  414. searchFolder: "$(Build.StagingDirectory)"
  415. testFiltercriteria: TestCategory!=Database&TestCategory!=Integration
  416. runOnlyImpactedTests: 'false'
  417. runAllTestsAfterXBuilds: '50'
  418. uiTests: 'false'
  419. vstestLocationMethod: version
  420. vsTestVersion: latest
  421. vstestLocation: ''
  422. runSettingsFile: "$(repo.)/CompanyName.LEP.Etl/CompanyName.LEP.Etl.runsettings"
  423. overrideTestrunParameters: ''
  424. pathtoCustomTestAdapters: ''
  425. runInParallel: 'false'
  426. runTestsInIsolation: 'false'
  427. codeCoverageEnabled: 'true'
  428. otherConsoleOptions: ''
  429. distributionBatchType: basedOnTestCases
  430. batchingBasedOnAgentsOption: autoBatchSize
  431. customBatchSizeValue: '10'
  432. batchingBasedOnExecutionTimeOption: autoBatchSize
  433. customRunTimePerBatchValue: '60'
  434. dontDistribute: 'false'
  435. testRunTitle: CompanyName.LEP.Etl Tests w Runsettings
  436. : Any CPU
  437. configuration: "$(configuration.Etl)"
  438. publishRunAttachments: 'true'
  439.  
  440. - task: CopyFiles@2
  441. displayName: 'Copy Files to: $(Build.StagingDirectory)/CompanyName.LEP.Etl.Host'
  442. inputs:
  443. sourceFolder: "$(repo.)/CompanyName.LEP.Etl/CompanyName.LEP.Etl.Host"
  444. contents: Web.token.config
  445. targetFolder: "$(Build.StagingDirectory)/CompanyName.LEP.Etl.Host"
  446. cleanTargetFolder: 'false'
  447. overWrite: 'false'
  448. flattenFolders: 'false'
  449.  
  450. - task: CopyFiles@2
  451. displayName: Copy sql_agent_jobs to staging dir
  452. inputs:
  453. sourceFolder: "$(repo.)/CompanyName.LEP.Etl/Database/sql_agent_jobs"
  454. contents: "**"
  455. targetFolder: "$(Build.StagingDirectory)/sql_agent_jobs"
  456. cleanTargetFolder: 'false'
  457. overWrite: 'false'
  458. flattenFolders: 'false'
  459.  
  460. - task: PowerShell@1
  461. displayName: SSIS_CreateSsisFolder.ps1
  462. inputs:
  463. scriptType: filePath
  464. scriptName: "$(repo.BuildScripts)/SSIS_CreateSsisFolder.ps1"
  465. arguments: ''
  466. workingFolder: ''
  467. failOnStandardError: 'true'
  468.  
  469. - task: MSBuild@1
  470. displayName: Build CompanyName.LEP.Etl.Ssis.dtproj
  471. inputs:
  472. solution: "$(repo.BuildScripts)/SsisBuildDtproj_15.0.proj"
  473. msbuildLocationMethod: version
  474. msbuildVersion: '14.0'
  475. msbuildArchitecture: x86
  476. msbuildLocation: ''
  477. : x86
  478. configuration: "$(configuration.Etl)"
  479. msbuildArguments: /p:SSISProject=$(Build.SourcesDirectory)\$(map.)\$(map.Etl)\CompanyName.LEP.Etl.Ssis\CompanyName.LEP.Etl.Ssis.dtproj /fl /flp:logfile="$(Build.StagingDirectory)\SSIS\CompanyName.LEP.Etl.Ssis.txt" /v:normal /p:CmdLineInMemoryStorage=true
  480. clean: 'false'
  481. maximumCpuCount: 'false'
  482. restoreNugetPackages: 'false'
  483. logProjectEvents: 'false'
  484. createLogFile: 'false'
  485.  
  486. - task: PowerShell@1
  487. displayName: SSIS_RenameIspac_Copy.ps1 CompanyName.LEP.Etl.Ssis.ispac
  488. inputs:
  489. scriptType: filePath
  490. scriptName: "$(repo.BuildScripts)/SSIS_RenameIspac_Copy.ps1"
  491. arguments: -SourceRoot "$(Build.SourcesDirectory)\$(map.)\$(map.Etl)" -binSub "bin\$(configuration.Etl)" -ProjectName "CompanyName.LEP.Etl.Ssis" -OutFile "CompanyName.LEP.Etl.ispac" -TargetFolder "$(Build.StagingDirectory)\SSIS"
  492.  
  493. - task: MSBuild@1
  494. displayName: Build CompanyName.LEP.Etl.Ssis.Cdi.dtproj
  495. inputs:
  496. solution: "$(repo.BuildScripts)/SsisBuildDtproj_15.0.proj"
  497. msbuildLocationMethod: version
  498. msbuildVersion: '14.0'
  499. msbuildArchitecture: x86
  500. msbuildLocation: ''
  501. : x86
  502. configuration: "$(configuration.Etl)"
  503. msbuildArguments: /p:SSISProject=$(Build.SourcesDirectory)\$(map.)\$(map.Etl)\CompanyName.LEP.Etl.Ssis.Cdi/CompanyName.LEP.Etl.Ssis.Cdi.dtproj /fl /flp:logfile="$(Build.StagingDirectory)\SSIS\CompanyName.LEP.Etl.Ssis.Cdi.txt" /v:normal /p:CmdLineInMemoryStorage=true
  504. clean: 'false'
  505. maximumCpuCount: 'true'
  506. restoreNugetPackages: 'false'
  507. logProjectEvents: 'false'
  508. createLogFile: 'false'
  509.  
  510. - task: PowerShell@1
  511. displayName: SSIS_RenameIspac_Copy.ps1 CompanyName.LEP.Etl.Ssis.Cdi.ispac
  512. inputs:
  513. scriptType: filePath
  514. scriptName: "$(repo.BuildScripts)/SSIS_RenameIspac_Copy.ps1"
  515. arguments: -SourceRoot "$(Build.SourcesDirectory)\$(map.)\$(map.Etl)" -binSub "bin\$(configuration.Etl)" -ProjectName "CompanyName.LEP.Etl.Ssis.Cdi" "CompanyName.LEP.Etl.Ssis.ispac" -TargetFolder "$(Build.StagingDirectory)\SSIS"
  516.  
  517. - task: MSBuild@1
  518. displayName: Build CompanyName.LEP.Etl.Ssis.DataMigration.dtproj
  519. inputs:
  520. solution: "$(repo.BuildScripts)/SsisBuildDtproj_15.0.proj"
  521. msbuildLocationMethod: version
  522. msbuildVersion: '14.0'
  523. msbuildArchitecture: x86
  524. msbuildLocation: ''
  525. : x86
  526. configuration: "$(configuration.Etl)"
  527. msbuildArguments: /p:SSISProject=$(Build.SourcesDirectory)\$(map.)\$(map.Etl)\CompanyName.LEP.Etl.Ssis.DataMigration/CompanyName.LEP.Etl.Ssis.DataMigration.dtproj /fl /flp:logfile="$(Build.StagingDirectory)\SSIS\CompanyName.LEP.Etl.Ssis.DataMigration.txt" /v:normal /p:CmdLineInMemoryStorage=true
  528. clean: 'false'
  529. maximumCpuCount: 'false'
  530. restoreNugetPackages: 'false'
  531. logProjectEvents: 'false'
  532. createLogFile: 'false'
  533.  
  534. - task: PowerShell@1
  535. displayName: SSIS_RenameIspac_Copy.ps1 CompanyName.LEP.Etl.Ssis.DataMigration.ispac
  536. inputs:
  537. scriptType: filePath
  538. scriptName: "$(repo.BuildScripts)/SSIS_RenameIspac_Copy.ps1"
  539. arguments: -SourceRoot "$(Build.SourcesDirectory)\$(map.)\$(map.Etl)" -binSub "bin\$(configuration.Etl)" -ProjectName "CompanyName.LEP.Etl.Ssis.DataMigration" "CompanyName.LEP.Etl.Ssis.ispac" -TargetFolder "$(Build.StagingDirectory)\SSIS"
  540.  
  541. - task: MSBuild@1
  542. displayName: Build CompanyName.LEP.Etl.Ssis.DataWarehouse.dtproj
  543. inputs:
  544. solution: "$(repo.BuildScripts)/SsisBuildDtproj_15.0.proj"
  545. msbuildLocationMethod: version
  546. msbuildVersion: '14.0'
  547. msbuildArchitecture: x86
  548. msbuildLocation: ''
  549. : x86
  550. configuration: "$(configuration.Etl)"
  551. msbuildArguments: /p:SSISProject=$(Build.SourcesDirectory)\$(map.)\$(map.Etl)\CompanyName.LEP.Etl.Ssis.DataWarehouse/CompanyName.LEP.Etl.Ssis.DataWarehouse.dtproj /fl /flp:logfile="$(Build.StagingDirectory)\SSIS\CompanyName.LEP.Etl.Ssis.DataWarehouse.txt" /v:normal /p:CmdLineInMemoryStorage=true
  552. clean: 'false'
  553. maximumCpuCount: 'false'
  554. restoreNugetPackages: 'false'
  555. logProjectEvents: 'false'
  556. createLogFile: 'false'
  557.  
  558. - task: PowerShell@1
  559. displayName: SSIS_RenameIspac_Copy.ps1 CompanyName.LEP.Etl.Ssis.DataWarehouse.ispac
  560. inputs:
  561. scriptType: filePath
  562. scriptName: "$(repo.BuildScripts)/SSIS_RenameIspac_Copy.ps1"
  563. arguments: -SourceRoot "$(Build.SourcesDirectory)\$(map.)\$(map.Etl)" -binSub "bin\$(configuration.Etl)" -ProjectName "CompanyName.LEP.Etl.Ssis.DataWarehouse" "CompanyName.LEP.Etl.Ssis.ispac" -TargetFolder "$(Build.StagingDirectory)\SSIS"
  564.  
  565. - task: CopyPublishBuildArtifacts@1
  566. displayName: 'Copy Publish Artifact: $(artifactName.Etl)'
  567. inputs:
  568. CopyRoot: "$(Build.StagingDirectory)"
  569. Contents: "**\\*"
  570. ArtifactName: "$(artifactName.Etl)"
  571. ArtifactType: FilePath
  572. TargetPath: "\\\\$(Agent.Machinename)\\_drop\\$(octo.PackagePrefix)\\$(Build.BuildId)"
  573.  
  574. - task: PowerShell@1
  575. displayName: SSIS_Packaging_PostBuild.ps1
  576. inputs:
  577. scriptType: filePath
  578. scriptName: "$(repo.BuildScripts)/SSIS_Packaging_PostBuild.ps1"
  579. arguments: -ArtifactPath "\\$(Agent.Machinename)\_drop\$(octo.PackagePrefix)\$(Build.BuildId)\$(artifactName.Etl)"
  580.  
  581. - task: OctopusPack@2
  582. displayName: Package $(octo.PackagePrefix)$(artifactName.Etl)
  583. inputs:
  584. PackageId: "$(octo.PackagePrefix)$(artifactName.Etl)"
  585. PackageFormat: NuPkg
  586. PackageVersion: "$(Version)"
  587. SourcePath: "\\\\$(Agent.Machinename)\\_drop\\$(octo.PackagePrefix)\\$(Build.BuildId)\\$(artifactName.Etl)"
  588. OutputPath: "\\\\$(Agent.Machinename)\\_packages"
  589. NuGetAuthor: ''
  590. NuGetTitle: ''
  591. NuGetDescription: ''
  592. NuGetReleaseNotes: ''
  593. NuGetReleaseNotesFile: ''
  594. Include: ''
  595. Overwrite: 'false'
  596. ListFiles: 'false'
  597.  
  598. - task: OctopusPush@2
  599. displayName: Push Packages to Octopus
  600. inputs:
  601. OctoConnectedServiceName:
  602. Package: "\\\\$(Agent.Machinename)\\_packages\\$(octo.PackagePrefix)$(artifactName.Etl).$(Version).nupkg"
  603. Replace: 'False'
  604. AdditionalArguments: ''
  605.  
  606. - phase: LEP
  607. queue: LEP
  608. steps:
  609. - task: PowerShell@1
  610. displayName: ExtConfigs_PreBuild.ps1
  611. inputs:
  612. scriptType: filePath
  613. scriptName: "$(repo.BuildScripts)/ExtConfigs_PreBuild.ps1"
  614. arguments: ''
  615.  
  616. - task: PowerShell@1
  617. displayName: ListVariables.ps1
  618. inputs:
  619. scriptType: filePath
  620. scriptName: "$(repo.BuildScripts)/ListVariables.ps1"
  621. arguments: ''
  622.  
  623. - task: PowerShell@1
  624. displayName: ApplyVersionToAssemblies.ps1
  625. inputs:
  626. scriptType: filePath
  627. scriptName: "$(repo.BuildScripts)/ApplyVersionToAssemblies.ps1"
  628. arguments: ''
  629.  
  630. - task: NugetRestore@2
  631. displayName: NuGet restore
  632. inputs:
  633. command: restore
  634. solution: "**/*.sln"
  635. searchPatternPush: "$(Build.ArtifactStagingDirectory)/*.nupkg"
  636. nuGetFeedType: internal
  637. feedPublish: ''
  638. allowPackageConflicts: 'false'
  639. externalEndpoint: ''
  640. searchPatternPack: "**/*.csproj"
  641. configurationToPack: "$(BuildConfiguration)"
  642. outputDir: "$(Build.ArtifactStagingDirectory)"
  643. arguments: ''
  644. selectOrConfig: select
  645. feedRestore:
  646. includeNuGetOrg: 'true'
  647. nugetConfigPath: ''
  648. externalEndpoints: ''
  649. noCache: 'true'
  650. packagesDirectory: ''
  651. verbosityRestore: Detailed
  652. verbosityPush: Detailed
  653. versioningScheme: 'off'
  654. includeReferencedProjects: 'false'
  655. versionEnvVar: ''
  656. requestedMajorVersion: '1'
  657. requestedMinorVersion: '0'
  658. requestedPatchVersion: '0'
  659. packTimezone: utc
  660. includeSymbols: 'false'
  661. buildProperties: ''
  662. verbosityPack: Detailed
  663.  
  664. - task: CopyFiles@2
  665. displayName: 'Copy Files to: CompanyName.LEP.Web.Host'
  666. inputs:
  667. sourceFolder: "$(repo.)/CompanyName.LEP/CompanyName.LEP.Web.Host"
  668. contents: Web.token.config
  669. targetFolder: "$(Build.StagingDirectory)/CompanyName.LEP.Web.Host"
  670. cleanTargetFolder: 'false'
  671. overWrite: 'false'
  672. flattenFolders: 'false'
  673.  
  674. - task: CopyFiles@2
  675. displayName: 'Copy Files to: CompanyName.LEP.IdentityModel.Host'
  676. inputs:
  677. sourceFolder: "$(repo.)/CompanyName.LEP/CompanyName.LEP.IdentityModel.Host"
  678. contents: Web.token.config
  679. targetFolder: "$(Build.StagingDirectory)/CompanyName.LEP.IdentityModel.Host"
  680. cleanTargetFolder: 'false'
  681. overWrite: 'false'
  682. flattenFolders: 'false'
  683.  
  684. - task: VSBuild@1
  685. displayName: Build solution CompanyName.LEP.sln
  686. inputs:
  687. solution: "$(repo.)/CompanyName.LEP/CompanyName.LEP.sln"
  688. vsVersion: '15.0'
  689. msbuildArgs: /p:OutDir=$(Build.StagingDirectory) /p:LEPloyOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PublishProfile="$(Build.SourcesDirectory)\$(map.)\CompanyName.LEP\CompanyName.LEP.Web.Host\Properties\PublishProfiles\CompanyName_Build.pubxml" /p:CmdLineInMemoryStorage=true
  690. : Any CPU
  691. configuration: Release
  692. clean: 'false'
  693. maximumCpuCount: 'false'
  694. restoreNugetPackages: 'false'
  695. msbuildArchitecture: x86
  696. logProjectEvents: 'true'
  697. createLogFile: 'false'
  698.  
  699. - task: VSTest@2
  700. displayName: Test Assemblies CompanyName.LEP
  701. inputs:
  702. testSelector: testAssemblies
  703. testAssemblyVer2: "**\\*test*.dll\n!**\\obj\\**"
  704. testPlan: ''
  705. testSuite: ''
  706. testConfiguration: ''
  707. tcmTestRun: "$(test.RunId)"
  708. searchFolder: "$(Build.StagingDirectory)"
  709. testFiltercriteria: TestCategory!=Database&TestCategory!=Integration
  710. runOnlyImpactedTests: 'false'
  711. runAllTestsAfterXBuilds: '50'
  712. uiTests: 'false'
  713. vstestLocationMethod: version
  714. vsTestVersion: latest
  715. vstestLocation: ''
  716. runSettingsFile: "$(repo.)/CompanyName.LEP/CompanyName.LEP.runsettings"
  717. overrideTestrunParameters: ''
  718. pathtoCustomTestAdapters: ''
  719. runInParallel: 'false'
  720. runTestsInIsolation: 'false'
  721. codeCoverageEnabled: 'true'
  722. otherConsoleOptions: ''
  723. distributionBatchType: basedOnTestCases
  724. batchingBasedOnAgentsOption: autoBatchSize
  725. customBatchSizeValue: '10'
  726. batchingBasedOnExecutionTimeOption: autoBatchSize
  727. customRunTimePerBatchValue: '60'
  728. dontDistribute: 'false'
  729. testRunTitle: CompanyName.LEP Tests w Runsettings
  730. : Any CPU
  731. configuration: Release
  732. publishRunAttachments: 'true'
  733.  
  734. - task: CopyPublishBuildArtifacts@1
  735. displayName: 'Copy Publish Artifact: $(artifactName.LEP)'
  736. inputs:
  737. CopyRoot: "$(Build.StagingDirectory)"
  738. Contents: "**\\*"
  739. ArtifactName: "$(artifactName.LEP)"
  740. ArtifactType: FilePath
  741. TargetPath: "\\\\$(Agent.Machinename)\\_drop\\$(octo.PackagePrefix)\\$(Build.BuildId)"
  742.  
  743. - task: PowerShell@1
  744. displayName: WEB_Packaging_PostBuild.ps1
  745. inputs:
  746. scriptType: filePath
  747. scriptName: "$(repo.BuildScripts)/WEB_Packaging_PostBuild.ps1"
  748. arguments: -ArtifactPath "\\$(Agent.Machinename)\_drop\$(octo.PackagePrefix)\$(Build.BuildId)\$(artifactName.LEP)"
  749.  
  750. - task: OctopusPack@2
  751. displayName: Package $(octo.PackagePrefix)$(artifactName.LEP)
  752. inputs:
  753. PackageId: "$(octo.PackagePrefix)$(artifactName.LEP)"
  754. PackageFormat: NuPkg
  755. PackageVersion: "$(Version)"
  756. SourcePath: "\\\\$(Agent.Machinename)\\_drop\\$(octo.PackagePrefix)\\$(Build.BuildId)\\$(artifactName.LEP)"
  757. OutputPath: "\\\\$(Agent.Machinename)\\_packages"
  758. NuGetAuthor: ''
  759. NuGetTitle: ''
  760. NuGetDescription: ''
  761. NuGetReleaseNotes: ''
  762. NuGetReleaseNotesFile: ''
  763. Include: ''
  764. Overwrite: 'false'
  765. ListFiles: 'false'
  766.  
  767. - task: OctopusPush@2
  768. displayName: Push Packages to Octopus
  769. inputs:
  770. OctoConnectedServiceName:
  771. Package: "\\\\$(Agent.Machinename)\\_packages\\$(octo.PackagePrefix)$(artifactName.LEP).$(Version).nupkg"
  772. Replace: 'False'
  773.  
  774. - phase: Post
  775. queue: LEP
  776. DependsOn:
  777. - CD
  778. - Bus
  779. - Etl
  780. - LEP
  781. steps:
  782. - task: PowerShell@1
  783. displayName: Update BuildID Octopus variable with Build ID
  784. inputs:
  785. scriptType: filePath
  786. scriptName: "$(repo.BuildScripts)/UpdateOctopusVariable.ps1"
  787. arguments: 'BuildID $(Build.BuildID) $(APIKey) $(OctopusProjectName)'
  788.  
  789. - task: OctopusCreateRelease@2
  790. displayName: Create Octopus Release
  791. inputs:
  792. OctoConnectedServiceName:
  793. ProjectName: "$(OctopusProjectName)"
  794. ReleaseNumber: "$(Version)-$(BranchName)"
  795. Channel: ''
  796. ChangesetCommentReleaseNotes: 'false'
  797. WorkItemReleaseNotes: 'false'
  798. CustomReleaseNotes: ''
  799. LEPloyToEnvironment: "$(environmentName)"
  800. LEPloyForTenants: "$(Tenant)"
  801. LEPloyForTenantTags: ''
  802. LEPloymentProgress: 'false'
  803. AdditionalArguments: "--package=-LEP:$(Version) --package=-Bus:$(Version) --package=-Etl:$(Version) --package=-Cms:$(Version)"
Add Comment
Please, Sign In to add comment