-
Notifications
You must be signed in to change notification settings - Fork 730
[Draft] Major Release v2.0.0rc0 #558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
ca1bba2
Add initial version of versioned install script
7dbf4a1
Merge branch 'master' of https://github.com/microsoft/artifacts-credp…
39f4b54
Add install-release CI, bash script
f76a99a
Merge branch 'releases/2.0.0' into cobya/V2Net
cobya c2540dd
Update ADO CI
0f3b099
fix bad stage names
f922d7c
Update helper scripts, CI
a6d5cd7
linux support in ps1
c5f3be6
CI fixes
0781925
Remove old fx pack
931ac73
More CI testing
5af7cf5
Update installs
cc7bd5b
Update CI invocation
c5624b2
Linux updates
d2bc798
Linx updates
5d190bb
update download url
952eda3
Version normalization, OS check updates
a4b6de8
Version normalization
669d718
Add auto-detection to linux
7a559dc
Non-SC updates
1a93d75
linux updates
3b1f59f
fix stage name
7af9ab8
default updates
1e250fa
default update
d9ce579
Testing updates
f62d456
remove bad var
cbc7c80
Update bash install
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,48 @@ | ||
| parameters: | ||
| - name: repo | ||
| type: string | ||
| - name: scriptEnvVariables | ||
| type: string | ||
| - name: expectedCredentialProviderVersion | ||
| type: string | ||
| - name: releaseVersion | ||
| type: string | ||
| default: 'latest' | ||
|
|
||
| steps: | ||
| - checkout: ${{ parameters.repo }} | ||
| - bash: | | ||
| ${{ parameters.scriptEnvVariables }} | ||
|
|
||
| RELEASE_VERSION="${{ parameters.releaseVersion }}" | ||
| if [ "$RELEASE_VERSION" = "latest" ]; then | ||
| ./helpers/installcredproviderrelease.sh -Force >> ./output.log 2>&1 | ||
| else | ||
| export AZURE_ARTIFACTS_CREDENTIAL_PROVIDER_VERSION="$RELEASE_VERSION" | ||
| ./helpers/installcredproviderrelease.sh -Force >> ./output.log 2>&1 | ||
| fi | ||
|
|
||
| cat ./output.log | ||
|
|
||
| # Check if expected credential provider version was found in output | ||
| if ! grep "${{ parameters.expectedCredentialProviderVersion }}" ./output.log; then | ||
| echo "Expected credential provider not found in output" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Verify the credential provider directory was created | ||
| if [ ! -d "$HOME/.nuget/plugins/netcore/CredentialProvider.Microsoft" ]; then | ||
| echo "Credential provider plugin directory not found at: $HOME/.nuget/plugins/netcore/CredentialProvider.Microsoft" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Credential provider installed successfully via release script" | ||
| workingDirectory: $(Build.SourcesDirectory) | ||
| displayName: Validate Install Release Script | ||
| - bash: | | ||
| if grep $'\r' ./helpers/installcredproviderrelease.sh; then | ||
| echo "CRLF line ending found" | ||
| exit 1 | ||
| fi | ||
| workingDirectory: $(Build.SourcesDirectory) | ||
| displayName: Check Line Endings |
This file contains hidden or 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,43 @@ | ||
| parameters: | ||
| - name: repo | ||
| type: string | ||
| - name: scriptInputs | ||
| type: string | ||
| - name: expectedCredentialProviderVersion | ||
| type: string | ||
| - name: releaseVersion | ||
| type: string | ||
| default: 'latest' | ||
|
|
||
| steps: | ||
| - checkout: ${{ parameters.repo }} | ||
| - task: PowerShell@2 | ||
| displayName: Validate Install Release Script | ||
| inputs: | ||
| targetType: 'inline' | ||
| script: | | ||
| $releaseVersion = "${{ parameters.releaseVersion }}" | ||
| if ($releaseVersion -eq "latest") { | ||
| ./helpers/installcredproviderrelease.ps1 ${{ parameters.scriptInputs }} -Force 6>> ./output.log | ||
cobya marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } else { | ||
| ./helpers/installcredproviderrelease.ps1 -Version $releaseVersion ${{ parameters.scriptInputs }} -Force 6>> ./output.log | ||
| } | ||
|
|
||
| cat ./output.log | ||
|
|
||
| # Check if expected credential provider version was installed | ||
| if( (Select-String -Path .\output.log -Pattern ${{ parameters.expectedCredentialProviderVersion }}) -eq $null) { | ||
| echo "Expected credential provider file not found in output." | ||
| exit 1 | ||
| } | ||
|
|
||
| # Verify the credential provider was actually installed | ||
| $pluginPath = "$env:USERPROFILE\.nuget\plugins\netcore\CredentialProvider.Microsoft" | ||
| if (!(Test-Path $pluginPath)) { | ||
| echo "Credential provider plugin directory not found at: $pluginPath" | ||
| exit 1 | ||
| } | ||
|
|
||
| echo "Credential provider installed successfully via release script" | ||
| workingDirectory: $(Build.SourcesDirectory) | ||
| failOnStderr: false | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.