Skip to content

Commit 6d88c8e

Browse files
committed
Work CD-CI
- Add ignoreLASTEXITCODE as git return messages are messing up the parsing from execution. - Add --quiet options to git command for the same reason. ***NO_CI*** Signed-off-by: josesimoes <[email protected]>
1 parent 73d2e8f commit 6d88c8e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

azure-pipelines.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ jobs:
6666
git config --global user.email [email protected]
6767
git config --global core.autocrlf true
6868
69+
Write-Host "Checkout develop branch..."
70+
git checkout --quiet develop > $null
71+
6972
# prepare release and capture output
7073
Write-Host "Prepare release with NBGV..."
7174
$release = nbgv prepare-release -p source
@@ -79,7 +82,7 @@ jobs:
7982

8083
Write-Host "Pushing changes to GitHub..."
8184
# push all changes to github
82-
git -c http.extraheader="AUTHORIZATION: $auth" push --all origin
85+
git -c http.extraheader="AUTHORIZATION: $auth" push --quiet --all origin
8386

8487
# get release branch name
8588
$branch = $release.Split(' ')[0]
@@ -111,6 +114,7 @@ jobs:
111114
"Error starting PR: $responseBody" | Write-Host -ForegroundColor Red
112115
}
113116
workingDirectory: $(Agent.TempDirectory)
117+
ignoreLASTEXITCODE: true
114118
condition: eq( variables['StartReleaseCandidate'], true )
115119
displayName: NBGV prepare release
116120

0 commit comments

Comments
 (0)