-
Notifications
You must be signed in to change notification settings - Fork 30
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 #250 from microsoft/user/pavanneerudu/azurestackhc…
…imachine-del-bugfix AzureStackHCIVirtualMachine Deletion Bug fix, tests, mocks and fixes for issues including linting, codeql, tsa, etc
- Loading branch information
Showing
53 changed files
with
918 additions
and
2,456 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ jobs: | |
|
||
steps: | ||
- checkout: self | ||
|
||
- task: DownloadBuildArtifacts@0 | ||
inputs: | ||
buildType: "specific" | ||
|
@@ -22,28 +23,56 @@ jobs: | |
branchName: "refs/heads/master" | ||
downloadType: "specific" | ||
downloadPath: "$(System.DefaultWorkingDirectory)" | ||
|
||
- task: InstallSSHKey@0 | ||
inputs: | ||
knownHostsEntry: "$(KNOWN_HOST)" | ||
sshPublicKey: "$(SSH_PUBLIC_KEY)" | ||
sshKeySecureFile: "azure-pipelines-ssh-key-new" | ||
displayName: "Install SSH Key🔑" | ||
|
||
- script: | | ||
git config --global url.ssh://[email protected]/.insteadOf https://github.com/ | ||
go env -w GOPRIVATE="github.com/microsoft" | ||
displayName: "Configure git to use SSH ⚙️" | ||
- task: DockerInstaller@0 | ||
inputs: | ||
dockerVersion: "17.09.0-ce" | ||
|
||
- task: Docker@2 | ||
displayName: Login to ACR | ||
inputs: | ||
command: login | ||
containerRegistry: mocimages-connection | ||
|
||
- task: GoTool@0 | ||
inputs: | ||
version: "1.19.9" | ||
displayName: "Install Go" | ||
|
||
- script: |- | ||
set -xe | ||
make test | ||
workingDirectory: "$(System.DefaultWorkingDirectory)" | ||
displayName: "Run Unit Tests🧪" | ||
- script: |- | ||
[[ -z "$(git diff --cached)" ]] || { | ||
echo "Changed files:"; | ||
git diff --cached --name-only; | ||
git diff --cached --color | cat; | ||
echo "Source changes detected after running make. Make sure to build both the product and test code locally (and run unit tests) before pushing changes"; | ||
exit 1; | ||
} | ||
workingDirectory: "$(System.DefaultWorkingDirectory)" | ||
displayName: "Check for uncommitted changes" | ||
- script: | | ||
set -e | ||
set -x | ||
mkdir manifest | ||
git config --global url.ssh://[email protected]/.insteadOf https://github.com/ | ||
chmod +x hack/ensure-kustomize.sh | ||
chmod +x hack/gen-flavors.sh | ||
chmod +x hack/for-pipeline.sh | ||
|
@@ -81,7 +110,7 @@ jobs: | |
mkdir -p out/ | ||
cp deployment/cloud-operator.yaml out/cloud-operator.yaml | ||
workingDirectory: "$(System.DefaultWorkingDirectory)" | ||
displayName: "Build CAPH" | ||
displayName: "Build CAPH🚀" | ||
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 | ||
displayName: "SBOM Generation" | ||
|
@@ -95,4 +124,4 @@ jobs: | |
artifact: templates | ||
|
||
- publish: $(System.DefaultWorkingDirectory)/manifest | ||
artifact: manifest | ||
artifact: manifest |
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
Oops, something went wrong.