-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #482 from rubrikinc/jaap-480
Fixed -Verbose incomplete message - Resolves #480
- Loading branch information
Showing
6 changed files
with
63 additions
and
4 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
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 |
---|---|---|
|
@@ -5,8 +5,25 @@ trigger: | |
pr: none | ||
|
||
jobs: | ||
- job: Verify_Skip_CI_Not_Present | ||
displayname: 'Verify is [skip ci] is not specified' | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
steps: | ||
- checkout: self | ||
persistCredentials: true | ||
- script: | | ||
gitlog=$(git log --oneline -1) | ||
regex="\[skip ci\]" | ||
if [[ $gitlog =~ $regex ]] | ||
then | ||
exit 1 | ||
fi | ||
- job: Build_Using_Windows_PowerShell_on_Server_2019 | ||
displayName: 'Build Using Windows PowerShell on Server 2019' | ||
dependsOn: Verify_Skip_CI_Not_Present | ||
condition: in(dependencies.Verify_Skip_CI_Not_Present.result, 'Succeeded') | ||
pool: | ||
vmImage: 'windows-2019' | ||
steps: | ||
|
@@ -27,9 +44,30 @@ jobs: | |
TargetBranch: $(system.pullRequest.targetBranch) | ||
PRNumber: $(system.pullRequest.pullRequestNumber) | ||
LocalPath: $(Build.Repository.LocalPath) | ||
GalleryAPIKey: $(PowerShellGalleryAPIKey) | ||
- task: PublishPipelineArtifact@0 | ||
displayName: 'Publish Repository as artifact' | ||
inputs: | ||
artifactName: 'PipelinesScripts' | ||
targetPath: . | ||
condition: failed() | ||
condition: failed() | ||
|
||
- job: Commit_Changes_From_DevOps_To_GitHub | ||
displayname: 'Commit Changes From DevOps To GitHub' | ||
dependsOn: Build_Using_Windows_PowerShell_on_Server_2019 | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
steps: | ||
- checkout: self | ||
persistCredentials: true | ||
- script: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "jaapbrasser" | ||
git branch devel | ||
git checkout devel | ||
git status | ||
git branch | ||
git add * | ||
git commit -m "[skip ci] Adding changes from Azure DevOps Pipelines" | ||
git push -u origin devel | ||
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