-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies from https://github.com/dotnet/arcade build 20190…
…803.1 (#372) - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19403.1
- Loading branch information
1 parent
677dd6b
commit 249aa3e
Showing
20 changed files
with
467 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
#!/usr/bin/env bash | ||
|
||
source="${BASH_SOURCE[0]}" | ||
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" | ||
|
||
. $scriptroot/common-library.sh | ||
|
||
base_uri= | ||
install_path= | ||
version= | ||
clean=false | ||
force=false | ||
download_retries=5 | ||
retry_wait_time_seconds=30 | ||
|
||
while (($# > 0)); do | ||
lowerI="$(echo $1 | awk '{print tolower($0)}')" | ||
case $lowerI in | ||
--baseuri) | ||
base_uri=$2 | ||
shift 2 | ||
;; | ||
--installpath) | ||
install_path=$2 | ||
shift 2 | ||
;; | ||
--version) | ||
version=$2 | ||
shift 2 | ||
;; | ||
--clean) | ||
clean=true | ||
shift 1 | ||
;; | ||
--force) | ||
force=true | ||
shift 1 | ||
;; | ||
--downloadretries) | ||
download_retries=$2 | ||
shift 2 | ||
;; | ||
--retrywaittimeseconds) | ||
retry_wait_time_seconds=$2 | ||
shift 2 | ||
;; | ||
--help) | ||
echo "Common settings:" | ||
echo " --baseuri <value> Base file directory or Url wrom which to acquire tool archives" | ||
echo " --installpath <value> Base directory to install native tool to" | ||
echo " --clean Don't install the tool, just clean up the current install of the tool" | ||
echo " --force Force install of tools even if they previously exist" | ||
echo " --help Print help and exit" | ||
echo "" | ||
echo "Advanced settings:" | ||
echo " --downloadretries Total number of retry attempts" | ||
echo " --retrywaittimeseconds Wait time between retry attempts in seconds" | ||
echo "" | ||
exit 0 | ||
;; | ||
esac | ||
done | ||
|
||
tool_name="cmake-test" | ||
tool_os=$(GetCurrentOS) | ||
tool_folder=$(echo $tool_os | awk '{print tolower($0)}') | ||
tool_arch="x86_64" | ||
tool_name_moniker="$tool_name-$version-$tool_os-$tool_arch" | ||
tool_install_directory="$install_path/$tool_name/$version" | ||
tool_file_path="$tool_install_directory/$tool_name_moniker/bin/$tool_name" | ||
shim_path="$install_path/$tool_name.sh" | ||
uri="${base_uri}/$tool_folder/$tool_name/$tool_name_moniker.tar.gz" | ||
|
||
# Clean up tool and installers | ||
if [[ $clean = true ]]; then | ||
echo "Cleaning $tool_install_directory" | ||
if [[ -d $tool_install_directory ]]; then | ||
rm -rf $tool_install_directory | ||
fi | ||
|
||
echo "Cleaning $shim_path" | ||
if [[ -f $shim_path ]]; then | ||
rm -rf $shim_path | ||
fi | ||
|
||
tool_temp_path=$(GetTempPathFileName $uri) | ||
echo "Cleaning $tool_temp_path" | ||
if [[ -f $tool_temp_path ]]; then | ||
rm -rf $tool_temp_path | ||
fi | ||
|
||
exit 0 | ||
fi | ||
|
||
# Install tool | ||
if [[ -f $tool_file_path ]] && [[ $force = false ]]; then | ||
echo "$tool_name ($version) already exists, skipping install" | ||
exit 0 | ||
fi | ||
|
||
DownloadAndExtract $uri $tool_install_directory $force $download_retries $retry_wait_time_seconds | ||
|
||
if [[ $? != 0 ]]; then | ||
echo "Installation failed" >&2 | ||
exit 1 | ||
fi | ||
|
||
# Generate Shim | ||
# Always rewrite shims so that we are referencing the expected version | ||
NewScriptShim $shim_path $tool_file_path true | ||
|
||
if [[ $? != 0 ]]; then | ||
echo "Shim generation failed" >&2 | ||
exit 1 | ||
fi | ||
|
||
exit 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.Guardian.Cli" version="0.6.0"/> | ||
<package id="Microsoft.Guardian.Cli" version="0.7.1"/> | ||
</packages> |
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
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
148 changes: 148 additions & 0 deletions
148
eng/common/templates/post-build/channels/netcore-dev-5.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,148 @@ | ||
parameters: | ||
enableSymbolValidation: true | ||
|
||
stages: | ||
- stage: NetCore_Dev5_Publish | ||
dependsOn: validate | ||
variables: | ||
- template: ../common-variables.yml | ||
displayName: .NET Core 5 Dev Channel | ||
jobs: | ||
- template: ../setup-maestro-vars.yml | ||
|
||
- job: | ||
displayName: Symbol Publishing | ||
dependsOn: setupMaestroVars | ||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.NetCore_5_Dev_Channel_Id)) | ||
variables: | ||
- group: DotNet-Symbol-Server-Pats | ||
pool: | ||
vmImage: 'windows-2019' | ||
steps: | ||
- task: DownloadBuildArtifacts@0 | ||
displayName: Download Artifacts | ||
inputs: | ||
downloadType: specific files | ||
matchingPattern: "*Artifacts*" | ||
|
||
- task: PowerShell@2 | ||
displayName: Publish | ||
inputs: | ||
filePath: eng\common\sdk-task.ps1 | ||
arguments: -task PublishToSymbolServers -restore -msbuildEngine dotnet | ||
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat) | ||
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat) | ||
/p:PDBArtifactsDirectory='$(Build.ArtifactStagingDirectory)/PDBArtifacts/' | ||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/' | ||
/p:Configuration=Release | ||
|
||
- job: | ||
displayName: Publish Assets | ||
dependsOn: setupMaestroVars | ||
variables: | ||
- group: DotNet-Blob-Feed | ||
- group: AzureDevOps-Artifact-Feeds-Pats | ||
- name: BARBuildId | ||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] | ||
- name: IsStableBuild | ||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] | ||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.NetCore_5_Dev_Channel_Id)) | ||
pool: | ||
vmImage: 'windows-2019' | ||
steps: | ||
- task: DownloadBuildArtifacts@0 | ||
displayName: Download Package Artifacts | ||
inputs: | ||
buildType: current | ||
artifactName: PackageArtifacts | ||
|
||
- task: DownloadBuildArtifacts@0 | ||
displayName: Download Blob Artifacts | ||
inputs: | ||
buildType: current | ||
artifactName: BlobArtifacts | ||
|
||
- task: DownloadBuildArtifacts@0 | ||
displayName: Download Asset Manifests | ||
inputs: | ||
buildType: current | ||
artifactName: AssetManifests | ||
|
||
- task: PowerShell@2 | ||
displayName: Add Assets Location | ||
env: | ||
AZURE_DEVOPS_EXT_PAT: $(dn-bot-dnceng-unviersal-packages-rw) | ||
inputs: | ||
filePath: eng\common\sdk-task.ps1 | ||
arguments: -task PublishArtifactsInManifest -restore -msbuildEngine dotnet | ||
/p:ChannelId=$(NetCore_5_Dev_Channel_Id) | ||
/p:ArtifactsCategory=$(_DotNetArtifactsCategory) | ||
/p:IsStableBuild=$(IsStableBuild) | ||
/p:IsInternalBuild=$(IsInternalBuild) | ||
/p:RepositoryName=$(Build.Repository.Name) | ||
/p:CommitSha=$(Build.SourceVersion) | ||
/p:NugetPath=$(Agent.BuildDirectory)\Nuget\NuGet.exe | ||
/p:AzdoTargetFeedPAT='$(dn-bot-dnceng-unviersal-packages-rw)' | ||
/p:TargetFeedPAT='$(dn-bot-dnceng-unviersal-packages-rw)' | ||
/p:AzureStorageTargetFeedPAT='$(dotnetfeed-storage-access-key-1)' | ||
/p:BARBuildId=$(BARBuildId) | ||
/p:MaestroApiEndpoint='$(MaestroApiEndPoint)' | ||
/p:BuildAssetRegistryToken='$(MaestroApiAccessToken)' | ||
/p:ManifestsBasePath='$(Build.ArtifactStagingDirectory)/AssetManifests/' | ||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/' | ||
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts/' | ||
/p:Configuration=Release | ||
|
||
- task: NuGetCommand@2 | ||
displayName: Publish Packages to AzDO Feed | ||
condition: contains(variables['TargetAzDOFeed'], 'pkgs.visualstudio.com') | ||
inputs: | ||
command: push | ||
vstsFeed: $(AzDoFeedName) | ||
packagesToPush: $(Build.ArtifactStagingDirectory)\PackageArtifacts\*.nupkg | ||
publishVstsFeed: $(AzDoFeedName) | ||
|
||
- task: PowerShell@2 | ||
displayName: Publish Blobs to AzDO Feed | ||
inputs: | ||
filePath: $(Build.SourcesDirectory)/eng/common/post-build/publish-blobs-to-azdo.ps1 | ||
arguments: -FeedName $(AzDoFeedName) | ||
-SourceFolderCollection $(Build.ArtifactStagingDirectory)/BlobArtifacts/ | ||
-PersonalAccessToken $(dn-bot-dnceng-unviersal-packages-rw) | ||
enabled: false | ||
|
||
|
||
- stage: NetCore_Dev5_PublishValidation | ||
displayName: Publish Validation | ||
variables: | ||
- template: ../common-variables.yml | ||
jobs: | ||
- template: ../setup-maestro-vars.yml | ||
|
||
- ${{ if eq(parameters.enableSymbolValidation, 'true') }}: | ||
- job: | ||
displayName: Symbol Availability | ||
dependsOn: setupMaestroVars | ||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.NetCore_5_Dev_Channel_Id)) | ||
pool: | ||
vmImage: 'windows-2019' | ||
steps: | ||
- task: DownloadBuildArtifacts@0 | ||
displayName: Download Package Artifacts | ||
inputs: | ||
buildType: current | ||
artifactName: PackageArtifacts | ||
|
||
- task: PowerShell@2 | ||
displayName: Check Symbol Availability | ||
inputs: | ||
filePath: $(Build.SourcesDirectory)/eng/common/post-build/symbols-validation.ps1 | ||
arguments: -InputPath $(Build.ArtifactStagingDirectory)/PackageArtifacts/ -ExtractPath $(Agent.BuildDirectory)/Temp/ -DotnetSymbolVersion $(SymbolToolVersion) | ||
|
||
- template: ../darc-gather-drop.yml | ||
parameters: | ||
ChannelId: ${{ variables.NetCore_5_Dev_Channel_Id }} | ||
|
||
- template: ../promote-build.yml | ||
parameters: | ||
ChannelId: ${{ variables.NetCore_5_Dev_Channel_Id }} |
Oops, something went wrong.