Skip to content

Commit

Permalink
Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ckairen committed Aug 30, 2021
1 parent f4ba9be commit 8d660b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
25 changes: 12 additions & 13 deletions eng/pipelines/templates/stages/archetype-net-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,18 @@ stages:
dependsOn: Signing
condition: and(succeeded(), ne(variables['SetDevVersion'], 'true'), ne(variables['Skip.Release'], 'true'), ne(variables['Build.Repository.Name'], 'Azure/azure-sdk-for-net-pr'))
jobs:
- ${{if ne(artifact.skipPublishPackage, 'true')}}:
- job: InstallationCheck
displayName: "Installation Check"
steps:
- download: current
artifact: ${{parameters.ArtifactName}}-signed
- pwsh:
mkdir InstallationCheck
displayName: Create Testing Directory
- pwsh: |
$(System.DefaultWorkingDirectory)/eng/scripts/InstallationCheck.ps1 -ArtifactsDirectory ${{parameters.ArtifactName}} -Artifact ${{artifact.name}} -PipelineWorkspace $(Pipeline.Workspace)
displayName: Verify Package Installation
workingDirectory: $(System.DefaultWorkingDirectory)/InstallationCheck
- job: InstallationCheck
condition: ne('${{ artifact.skipPublishPackage }}', 'true')
displayName: "Installation Check"
steps:
- download: current
artifact: ${{parameters.ArtifactName}}-signed
- pwsh: mkdir InstallationCheck
displayName: Create Testing Directory
- pwsh: |
$(System.DefaultWorkingDirectory)/eng/scripts/InstallationCheck.ps1 -ArtifactsDirectory ${{parameters.ArtifactName}} -Artifact ${{artifact.name}} -PipelineWorkspace $(Pipeline.Workspace)
displayName: Verify Package Installation
workingDirectory: $(System.DefaultWorkingDirectory)/InstallationCheck
- deployment: TagRepository
displayName: "Create release tag"
condition: ne(variables['Skip.TagRepository'], 'true')
Expand Down
4 changes: 2 additions & 2 deletions eng/scripts/InstallationCheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ param (
Write-Host "dotnet new console"
dotnet new console
$localFeed = "$PipelineWorkspace/$ArtifactsDirectory-signed/$Artifact"
Write-Host "dotnet nuget add source $($localFeed)"
Write-Host "dotnet nuget add source $localFeed"
dotnet nuget add source $localFeed

$version = (Get-ChildItem "$($localFeed)/*.nupkg" -Exclude "*.symbols.nupkg" -Name).replace(".nupkg","").replace("$($Artifact).","")
$version = (Get-ChildItem "$localFeed/*.nupkg" -Exclude "*.symbols.nupkg" -Name).replace(".nupkg","").replace("$Artifact.","")
Write-Host "dotnet add package $Artifact --version $version --no-restore"
dotnet add package $Artifact --version $version --no-restore
if ($LASTEXITCODE) {
Expand Down

0 comments on commit 8d660b4

Please sign in to comment.