@@ -45,6 +45,23 @@ extends:
4545 steps :
4646 - checkout : self
4747 fetchTags : true
48+ - task : UsePythonVersion@0
49+ displayName : ' Use Python 3.11.x'
50+ inputs :
51+ versionSpec : 3.11.x
52+ - task : UseDotNet@2
53+ displayName : ' Use .NET Core 3.1.x'
54+ inputs :
55+ packageType : ' sdk'
56+ version : ' 3.1.x'
57+ - task : MicroBuildSigningPlugin@4
58+ displayName : ' Install Signing Plugin'
59+ inputs :
60+ signType : real
61+ azureSubscription : ' MicroBuild Signing Task (MSEng)'
62+ feedSource : ' https://mseng.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json'
63+ env :
64+ SYSTEM_ACCESSTOKEN : $(System.AccessToken)
4865 - task : JavaToolInstaller@0
4966 displayName : Use Java 21
5067 inputs :
@@ -70,38 +87,16 @@ extends:
7087
7188 mkdir -p jars
7289 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@5
74- displayName : Sign core.jar
90+ - task : CmdLine@2
91+ displayName : Sign core jars
7592 inputs :
76- ConnectedServiceName : $(ConnectedServiceName)
77- AppRegistrationClientId : $(AppRegistrationClientId)
78- AppRegistrationTenantId : $(AppRegistrationTenantId)
79- AuthAKVName : $(AuthAKVName)
80- AuthCertName : $(AuthCertName)
81- AuthSignCertName : $(AuthSignCertName)
82- FolderPath : jars
83- Pattern : com.microsoft.java.debug.core*.jar
84- signConfigType : inlineSignParams
85- inlineOperation : |-
86- [
87- {
88- "KeyCode" : "CP-447347-Java",
89- "OperationCode" : "JavaSign",
90- "Parameters" : {
91- "SigAlg" : "SHA256withRSA",
92- "Timestamp" : "-tsa http://sha256timestamp.ws.digicert.com/sha256/timestamp"
93- },
94- "ToolName" : "sign",
95- "ToolVersion" : "1.0"
96- },
97- {
98- "KeyCode" : "CP-447347-Java",
99- "OperationCode" : "JavaVerify",
100- "Parameters" : {},
101- "ToolName" : "sign",
102- "ToolVersion" : "1.0"
103- }
104- ]
93+ script : |
94+ files=$(find . -type f -name "com.microsoft.java.debug.core*.jar")
95+ for file in $files; do
96+ fileName=$(basename "$file")
97+ dotnet "$MBSIGN_APPFOLDER/DDSignFiles.dll" -- /file:"$fileName" /certs:100010171
98+ done
99+ workingDirectory : ' jars'
105100 - task : CmdLine@2
106101 displayName : install signed core.jar
107102 inputs :
@@ -116,38 +111,16 @@ extends:
116111
117112 mkdir -p jars
118113 mv .repository/com/microsoft/java/com.microsoft.java.debug.plugin/$RELEASE_VERSION/com.microsoft.java.debug.plugin*.jar jars/
119- - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
120- displayName : Sign plugin.jar
114+ - task : CmdLine@2
115+ displayName : Sign plugin jars
121116 inputs :
122- ConnectedServiceName : $(ConnectedServiceName)
123- AppRegistrationClientId : $(AppRegistrationClientId)
124- AppRegistrationTenantId : $(AppRegistrationTenantId)
125- AuthAKVName : $(AuthAKVName)
126- AuthCertName : $(AuthCertName)
127- AuthSignCertName : $(AuthSignCertName)
128- FolderPath : jars
129- Pattern : com.microsoft.java.debug.plugin*.jar
130- signConfigType : inlineSignParams
131- inlineOperation : |-
132- [
133- {
134- "KeyCode" : "CP-447347-Java",
135- "OperationCode" : "JavaSign",
136- "Parameters" : {
137- "SigAlg" : "SHA256withRSA",
138- "Timestamp" : "-tsa http://sha256timestamp.ws.digicert.com/sha256/timestamp"
139- },
140- "ToolName" : "sign",
141- "ToolVersion" : "1.0"
142- },
143- {
144- "KeyCode" : "CP-447347-Java",
145- "OperationCode" : "JavaVerify",
146- "Parameters" : {},
147- "ToolName" : "sign",
148- "ToolVersion" : "1.0"
149- }
150- ]
117+ script : |
118+ files=$(find . -type f -name "com.microsoft.java.debug.plugin*.jar")
119+ for file in $files; do
120+ fileName=$(basename "$file")
121+ dotnet "$MBSIGN_APPFOLDER/DDSignFiles.dll" -- /file:"$fileName" /certs:100010171
122+ done
123+ workingDirectory : ' jars'
151124 - task : CopyFiles@2
152125 displayName : " Copy plugin.jar to: $(Build.ArtifactStagingDirectory)"
153126 inputs :
0 commit comments