-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create metadata.json file in conslidated artifacts intermediate pipel…
…ine (#3884) * adding generate metadata file * remove code mirror * get correct inproc version * print out metadata file * fixing zip issue * fixing release number * fixing release number again * removing zip artifact script and fixing code mirror
- Loading branch information
1 parent
2821f48
commit bc790c6
Showing
12 changed files
with
332 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,40 @@ | ||
trigger: | ||
branches: | ||
include: | ||
- feature/oop-host | ||
paths: | ||
include: | ||
- ./host/src/** | ||
pr: none | ||
|
||
pr: | ||
trigger: | ||
branches: | ||
include: | ||
- feature/oop-host | ||
paths: | ||
include: | ||
- ./host/src/** | ||
- /host/src/** | ||
|
||
resources: | ||
repositories: | ||
- repository: 1es | ||
type: git | ||
name: 1ESPipelineTemplates/1ESPipelineTemplates | ||
ref: refs/tags/release | ||
- repository: eng | ||
type: git | ||
name: engineering | ||
ref: refs/tags/release | ||
|
||
jobs: | ||
- job: BuildCoreToolsHostWindows | ||
displayName: '[Windows] Build CoreToolsHost' | ||
pool: | ||
vmImage: 'windows-latest' | ||
|
||
variables: | ||
variables: | ||
- template: /ci/variables/cfs.yml@eng | ||
|
||
templateContext: | ||
outputParentDirectory: $(Build.ArtifactStagingDirectory) | ||
outputs: | ||
- output: pipelineArtifact | ||
displayName: Publish CoreToolsHost packages | ||
path: $(Build.ArtifactStagingDirectory)/_coreToolsHostPackagesWindows | ||
artifact: _coreToolsHostPackagesWindows | ||
|
||
steps: | ||
- pwsh: | | ||
Import-Module "./pipelineUtilities.psm1" -Force | ||
Install-Dotnet | ||
displayName: 'Install .NET 9' | ||
- task: DotnetCoreCLI@2 | ||
displayName: Dotnet Publish (win-x64) | ||
inputs: | ||
command: publish | ||
publishWebProjects: false | ||
zipAfterPublish: false | ||
arguments: -c Release -r win-x64 -o $(Build.SourcesDirectory)/pkg_output/windows/win-x64 | ||
workingDirectory: $(Build.SourcesDirectory)/host/src/CoreToolsHost | ||
|
||
- task: DotnetCoreCLI@2 | ||
displayName: Dotnet Publish (win-arm64) | ||
inputs: | ||
command: publish | ||
publishWebProjects: false | ||
zipAfterPublish: false | ||
arguments: -c Release -r win-arm64 -o $(Build.SourcesDirectory)/pkg_output/windows/win-arm64 | ||
workingDirectory: $(Build.SourcesDirectory)/host/src/CoreToolsHost | ||
|
||
- task: CopyFiles@2 | ||
displayName: Copy files (win-x64) | ||
inputs: | ||
SourceFolder: $(Build.SourcesDirectory)/pkg_output/windows/win-x64 | ||
# Publish output will include many other files. We only need func.exe & nethost.dll | ||
Contents: | | ||
func.exe | ||
nethost.dll | ||
TargetFolder: $(Build.ArtifactStagingDirectory)/_coreToolsHostPackagesWindows/win-x64 | ||
|
||
- task: CopyFiles@2 | ||
displayName: Copy files (win-arm64) | ||
inputs: | ||
SourceFolder: $(Build.SourcesDirectory)/pkg_output/windows/win-arm64 | ||
# Publish output will include many other files. We only need func.exe & nethost.dll | ||
Contents: | | ||
func.exe | ||
nethost.dll | ||
TargetFolder: $(Build.ArtifactStagingDirectory)/_coreToolsHostPackagesWindows/win-arm64 | ||
|
||
- task: PublishPipelineArtifact@1 | ||
displayName: 'Publish CoreToolsHost packages artifact' | ||
inputs: | ||
targetPath: '$(Build.ArtifactStagingDirectory)/_coreToolsHostPackagesWindows' | ||
artifact: 'drop-coretools-host-windows' | ||
publishLocation: 'pipeline' | ||
extends: | ||
template: v1/1ES.Official.PipelineTemplate.yml@1es | ||
parameters: | ||
pool: | ||
name: 1es-pool-azfunc | ||
image: 1es-windows-2022 | ||
os: windows | ||
sdl: | ||
codeql: | ||
compiled: | ||
enabled: true | ||
runSourceLanguagesInSourceAnalysis: true | ||
stages: | ||
- stage: BuildCoreToolsHost | ||
jobs: | ||
- template: /eng/ci/templates/official/jobs/build-core-tools-host.yml@self |
123 changes: 123 additions & 0 deletions
123
eng/ci/templates/official/jobs/build-core-tools-host.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
jobs: | ||
- job: BuildCoreToolsHostWindows | ||
displayName: '[Windows] Build CoreToolsHost' | ||
pool: | ||
name: 1es-pool-azfunc | ||
image: 1es-windows-2022 | ||
os: windows | ||
|
||
steps: | ||
- task: UseDotNet@2 | ||
inputs: | ||
version: 9.x | ||
includePreviewVersions: true | ||
displayName: Install .NET 9 | ||
- task: UseDotNet@2 | ||
inputs: | ||
version: 6.x | ||
displayName: Install .NET 6 | ||
|
||
- task: DotnetCoreCLI@2 | ||
displayName: Dotnet Publish (win-x64) | ||
inputs: | ||
command: publish | ||
publishWebProjects: false | ||
zipAfterPublish: false | ||
arguments: -c Release -r win-x64 -o $(Build.SourcesDirectory)/pkg_output/windows/win-x64 --self-contained | ||
workingDirectory: $(Build.SourcesDirectory)/host/src/CoreToolsHost | ||
|
||
- task: DotnetCoreCLI@2 | ||
displayName: Dotnet Publish (win-arm64) | ||
inputs: | ||
command: publish | ||
publishWebProjects: false | ||
zipAfterPublish: false | ||
arguments: -c Release -r win-arm64 -o $(Build.SourcesDirectory)/pkg_output/windows/win-arm64 --self-contained | ||
workingDirectory: $(Build.SourcesDirectory)/host/src/CoreToolsHost | ||
|
||
- template: ci/sign-files.yml@eng | ||
parameters: | ||
displayName: 'Authenticode signing (dll) (win-arm64)' | ||
folderPath: '$(Build.SourcesDirectory)/pkg_output/windows/win-arm64' | ||
pattern: '*.dll, *.exe' | ||
signType: inline | ||
inlineOperation: | | ||
[ | ||
{ | ||
"KeyCode": "CP-230012", | ||
"OperationCode": "SigntoolSign", | ||
"Parameters": { | ||
"OpusName": "Microsoft", | ||
"OpusInfo": "http://www.microsoft.com", | ||
"FileDigest": "/fd \"SHA256\"", | ||
"PageHash": "/NPH", | ||
"TimeStamp": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" | ||
}, | ||
"ToolName": "sign", | ||
"ToolVersion": "1.0" | ||
}, | ||
{ | ||
"KeyCode": "CP-230012", | ||
"OperationCode": "SigntoolVerify", | ||
"Parameters": {}, | ||
"ToolName": "sign", | ||
"ToolVersion": "1.0" | ||
} | ||
] | ||
- template: ci/sign-files.yml@eng | ||
parameters: | ||
displayName: 'Authenticode signing (dll) (win-x64)' | ||
folderPath: '$(Build.SourcesDirectory)/pkg_output/windows/win-x64' | ||
pattern: '*.dll, *.exe' | ||
signType: inline | ||
inlineOperation: | | ||
[ | ||
{ | ||
"KeyCode": "CP-230012", | ||
"OperationCode": "SigntoolSign", | ||
"Parameters": { | ||
"OpusName": "Microsoft", | ||
"OpusInfo": "http://www.microsoft.com", | ||
"FileDigest": "/fd \"SHA256\"", | ||
"PageHash": "/NPH", | ||
"TimeStamp": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" | ||
}, | ||
"ToolName": "sign", | ||
"ToolVersion": "1.0" | ||
}, | ||
{ | ||
"KeyCode": "CP-230012", | ||
"OperationCode": "SigntoolVerify", | ||
"Parameters": {}, | ||
"ToolName": "sign", | ||
"ToolVersion": "1.0" | ||
} | ||
] | ||
- task: CopyFiles@2 | ||
displayName: Copy files (win-x64) | ||
inputs: | ||
SourceFolder: $(Build.SourcesDirectory)/pkg_output/windows/win-x64 | ||
# Publish output will include many other files. We only need func.exe & nethost.dll | ||
Contents: | | ||
func.exe | ||
nethost.dll | ||
TargetFolder: $(Build.ArtifactStagingDirectory)/_coreToolsHostPackagesWindows/win-x64 | ||
|
||
- task: CopyFiles@2 | ||
displayName: Copy files (win-arm64) | ||
inputs: | ||
SourceFolder: $(Build.SourcesDirectory)/pkg_output/windows/win-arm64 | ||
# Publish output will include many other files. We only need func.exe & nethost.dll | ||
Contents: | | ||
func.exe | ||
nethost.dll | ||
TargetFolder: $(Build.ArtifactStagingDirectory)/_coreToolsHostPackagesWindows/win-arm64 | ||
|
||
templateContext: | ||
outputParentDirectory: $(Build.ArtifactStagingDirectory) | ||
outputs: | ||
- output: pipelineArtifact | ||
path: $(Build.ArtifactStagingDirectory)/_coreToolsHostPackagesWindows | ||
artifact: drop-coretools-host-windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.