Skip to content

Commit 1b669f8

Browse files
Adopt the new code sign job in the pipeline (#563)
1 parent 24c61a7 commit 1b669f8

File tree

2 files changed

+42
-12
lines changed

2 files changed

+42
-12
lines changed

.azure-pipelines/signjars-nightly.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,15 @@ extends:
7070
7171
mkdir -p jars
7272
mv .repository/com/microsoft/java/com.microsoft.java.debug.core/$RELEASE_VERSION/com.microsoft.java.debug.core*.jar jars/
73-
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2
73+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
7474
displayName: Sign core.jar
7575
inputs:
76-
ConnectedServiceName: vscjavaci_esrp_codesign
76+
ConnectedServiceName: $(ConnectedServiceName)
77+
AppRegistrationClientId: $(AppRegistrationClientId)
78+
AppRegistrationTenantId: $(AppRegistrationTenantId)
79+
AuthAKVName: $(AuthAKVName)
80+
AuthCertName: $(AuthCertName)
81+
AuthSignCertName: $(AuthSignCertName)
7782
FolderPath: jars
7883
Pattern: com.microsoft.java.debug.core*.jar
7984
signConfigType: inlineSignParams
@@ -111,10 +116,15 @@ extends:
111116
112117
mkdir -p jars
113118
mv .repository/com/microsoft/java/com.microsoft.java.debug.plugin/$RELEASE_VERSION/com.microsoft.java.debug.plugin*.jar jars/
114-
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2
119+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
115120
displayName: Sign plugin.jar
116121
inputs:
117-
ConnectedServiceName: vscjavaci_esrp_codesign
122+
ConnectedServiceName: $(ConnectedServiceName)
123+
AppRegistrationClientId: $(AppRegistrationClientId)
124+
AppRegistrationTenantId: $(AppRegistrationTenantId)
125+
AuthAKVName: $(AuthAKVName)
126+
AuthCertName: $(AuthCertName)
127+
AuthSignCertName: $(AuthSignCertName)
118128
FolderPath: jars
119129
Pattern: com.microsoft.java.debug.plugin*.jar
120130
signConfigType: inlineSignParams

.azure-pipelines/signjars-rc.yml

+28-8
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,15 @@ extends:
7171
7272
mkdir -p jars
7373
mv .repository/com/microsoft/java/com.microsoft.java.debug.core/$RELEASE_VERSION/com.microsoft.java.debug.core*.jar jars/
74-
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2
74+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
7575
displayName: Sign core.jar
7676
inputs:
77-
ConnectedServiceName: vscjavaci_esrp_codesign
77+
ConnectedServiceName: $(ConnectedServiceName)
78+
AppRegistrationClientId: $(AppRegistrationClientId)
79+
AppRegistrationTenantId: $(AppRegistrationTenantId)
80+
AuthAKVName: $(AuthAKVName)
81+
AuthCertName: $(AuthCertName)
82+
AuthSignCertName: $(AuthSignCertName)
7883
FolderPath: jars
7984
Pattern: com.microsoft.java.debug.core*.jar
8085
signConfigType: inlineSignParams
@@ -111,10 +116,15 @@ extends:
111116
112117
mkdir -p jars
113118
mv .repository/com/microsoft/java/com.microsoft.java.debug.plugin/$RELEASE_VERSION/com.microsoft.java.debug.plugin*.jar jars/
114-
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2
119+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
115120
displayName: Sign plugin.jar
116121
inputs:
117-
ConnectedServiceName: vscjavaci_esrp_codesign
122+
ConnectedServiceName: $(ConnectedServiceName)
123+
AppRegistrationClientId: $(AppRegistrationClientId)
124+
AppRegistrationTenantId: $(AppRegistrationTenantId)
125+
AuthAKVName: $(AuthAKVName)
126+
AuthCertName: $(AuthCertName)
127+
AuthSignCertName: $(AuthSignCertName)
118128
FolderPath: jars
119129
Pattern: com.microsoft.java.debug.plugin*.jar
120130
signConfigType: inlineSignParams
@@ -152,10 +162,15 @@ extends:
152162
mkdir -p p2/target
153163
cp -r com.microsoft.java.debug.repository/target/repository p2/target/
154164
cp com.microsoft.java.debug.repository/pushToBintray.sh p2/
155-
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2
165+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
156166
displayName: Sign p2
157167
inputs:
158-
ConnectedServiceName: vscjavaci_esrp_codesign
168+
ConnectedServiceName: $(ConnectedServiceName)
169+
AppRegistrationClientId: $(AppRegistrationClientId)
170+
AppRegistrationTenantId: $(AppRegistrationTenantId)
171+
AuthAKVName: $(AuthAKVName)
172+
AuthCertName: $(AuthCertName)
173+
AuthSignCertName: $(AuthSignCertName)
159174
FolderPath: p2
160175
Pattern: "*.jar"
161176
signConfigType: inlineSignParams
@@ -199,10 +214,15 @@ extends:
199214
mkdir -p m2/com.microsoft.java.debug.plugin
200215
cp com.microsoft.java.debug.plugin/target/com.microsoft.java.debug.plugin*.jar m2/com.microsoft.java.debug.plugin
201216
cp com.microsoft.java.debug.plugin/pom.xml m2/com.microsoft.java.debug.plugin/com.microsoft.java.debug.plugin-$RELEASE_VERSION.pom
202-
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2
217+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
203218
displayName: Sign m2
204219
inputs:
205-
ConnectedServiceName: vscjavaci_esrp_codesign
220+
ConnectedServiceName: $(ConnectedServiceName)
221+
AppRegistrationClientId: $(AppRegistrationClientId)
222+
AppRegistrationTenantId: $(AppRegistrationTenantId)
223+
AuthAKVName: $(AuthAKVName)
224+
AuthCertName: $(AuthCertName)
225+
AuthSignCertName: $(AuthSignCertName)
206226
FolderPath: m2
207227
Pattern: "*.jar"
208228
signConfigType: inlineSignParams

0 commit comments

Comments
 (0)