forked from MicrosoftDocs/pipelines-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
71 lines (62 loc) · 2.16 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
trigger:
- master
pool:
vmImage: ubuntu-latest
stages:
- stage: Download
displayName: Download
jobs:
- job: getAssets
displayName: Get Assets from Mainframe and GitHub
steps:
# Clear Workspace
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
Remove-Item $(workspaceRoot)\* -Recurse -Force
# Download Mainframe Sources from ISPW Container
# The command line execution is equivalent to the following Jenkins Groovy method call
# checkout(
# [
# $class: 'IspwContainerConfiguration',
# connectionId: "${pipelineParams.hciConnectionId}",
# credentialsId: "${pipelineParams.hciToken}",
# componentType: '',
# containerName: pipelineParams.ispwAssignment,
# containerType: '0', // 0 Assignment, 1 Release, 2 Set,
# ispwDownloadAll: false,
# ispwDownloadIncl: true,
# serverConfig: '',
# serverLevel: ispwTargetLevel
# ]
- task: CmdLine@2
displayName: Download Mainframe Code
inputs:
script: |
CD $(workspaceRoot)
echo Downloading Mainframe Code using Parameters
echo Host IP : $(hostUri)
echo Port : $(hostPort)
echo User ID : $(hostUser)
echo Codepage : $(hostCodePage)
echo ISPW Config : $(ispwConfig)
echo Container : $(ispwContainerName)
echo Type : $(ispwContainerType)
echo Level : $(ispwTargetLevel)
$(cliPath)\SCMDownloaderCLI.bat ^
-host $(hostUri) ^
-port $(hostPort) ^
-id $(hostUser) ^
-pass $(hostPassword) ^
-protocol None ^
-code $(hostCodePage) ^
-timeout 0 ^
-targetFolder .\ ^
-data $(topazCliWorkspace) ^
-ispwServerConfig $(ispwConfig) ^
-scm ispwc ^
-ispwContainerName $(ispwContainerName) ^
-ispwContainerType $(ispwContainerType) ^
-ispwServerLevel $(ispwTargetLevel) ^
-ispwDownloadAll true