-
Notifications
You must be signed in to change notification settings - Fork 336
68 lines (53 loc) · 1.68 KB
/
CI_release.yml
File metadata and controls
68 lines (53 loc) · 1.68 KB
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
68
pool:
vmImage: 'ubuntu-latest'
variables:
ARTIFACT_DIR: $(Build.ArtifactStagingDirectory)
ESRP_CONNECTION_NAME: 'initialValue'
stages:
- stage: BuildAndPackage
jobs:
- job: Package
steps:
- task: NodeTool@0
condition: false
inputs:
versionSource: 'spec'
versionSpec: '22.x'
- task: Npm@1
condition: false
inputs:
command: 'install'
- task: Npm@1
condition: false
inputs:
command: 'custom'
customCommand: 'run package'
- script: |
echo "Artifact dir is $ARTIFACT_DIR"
echo "esrpConnectionName dir is $ESRP_CONNECTION_NAME"
# cp vscode-edge-devtools.vsix $(ARTIFACT_DIR)
displayName: 'Copy VSIX to Artifact Staging Directory'
env:
ARTIFACT_DIR: $(ARTIFACT_DIR)
ESRP_CONNECTION_NAME: $(ESRP_CONNECTION_NAME)
- task: EsrpCodeSigning@6
inputs:
ConnectedServiceName: $(ESRP_CONNECTION_NAME)
AppRegistrationClientId: $(appRegistrationClientId)
AppRegistrationTenantId: $(esrpTenantId)
EsrpClientId: $(esrpClientId)
UseMSIAuthentication: true
AuthAKVName: $(esrpAuthAkvName)
AuthSignCertName: $(esrpAuthCertName)
FolderPath: $(ARTIFACT_DIR)
Pattern: '*.vsix'
SessionTimeout: '60'
MaxConcurrency: '50'
MaxRetryAttempts: '5'
PendingAnalysisWaitTimeoutMinutes: '5'
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: '$(ARTIFACT_DIR)'
artifactName: 'vsix-artifact'
publishLocation: 'Container'
displayName: 'Publish VSIX Artifact'