-
Notifications
You must be signed in to change notification settings - Fork 147
Expanded Azure DevOps pipeline template including stand-alone deployment pipeline #381
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
Draft
dennis-behm
wants to merge
11
commits into
IBM:main
Choose a base branch
from
dennis-behm:feature/add-bearer-token-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a707fcf
Aligning deployment process
dennis-behm 9aaf401
deployment pipeline
dennis-behm 24fd9c6
drop packageVersion ref
dennis-behm 22bdfbd
drop packageVersion ref
dennis-behm f1c70a9
copy evidences to shared folder
dennis-behm a567f75
Uplift documentation and Azure pipeline
dennis-behm 8f2dde1
further readme fixes
dennis-behm c887fef
Merge remote-tracking branch 'upstream/main' into feature/add-bearer-…
dennis-behm dccb4da
update pics and git-clone
dennis-behm e64aea5
Readme update
dennis-behm 3a11e57
Rename verbose flag
dennis-behm 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
Large diffs are not rendered by default.
Oops, something went wrong.
141 changes: 141 additions & 0 deletions
141
Templates/AzureDevOpsPipeline/azure-pipeline-deploy.yml
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,141 @@ | ||
| # | ||
| # DEPLOYMENT PIPELINE | ||
| # | ||
| # This is a manually triggered pipeline that deploys a referenced archive of the application into the selected runtime environment | ||
| # using IBM Wazi Deploy | ||
| # | ||
| # It leverages the conventions of the Common Backend scripts, and assumes that the archive (a.k.a the package) | ||
| # has been uploaded to Artifactory or Nexus | ||
| # | ||
| # It relates to the environments, that have been configured for the project in the ADO project | ||
|
|
||
|
|
||
| # Configuration | ||
|
|
||
| ### Variables to be created in Azure pipeline configuration | ||
|
|
||
| # ) agentPool # Agent pool name for Azure Agents to connect to MVS | ||
| # ) zosSSHConnection # zOS - SSH connection name | ||
| # ) zosSSHKnownHost # Known host entry for secure shell connections | ||
| # ) zosSSHPrivateKeySecureFile # Reference to uploaded Private SSH Key that in ADO Pipeline/Libary/SecureFile that is | ||
| # that installed for sftp processes to fetch logs | ||
| # ) pipelineWorkspace # Root directory on z/OS Unix System services to perform build and deployments. E.g. `/u/ado/workspace` | ||
| # ) zosHostname # zOS - Host IP for SFTP connection | ||
| # ) zosSFTPUser # zOS - Host user for SFTP connection | ||
|
|
||
| ### Environment variables to be added in z/OS Unix System Services $HOME/.profile | ||
| # To locate the backend scripts. See also Installation of backend scripts. | ||
| # PIPELINE_SCRIPTS: | ||
| # Ex: export PIPELINE_SCRIPTS=/var/dbb/Common-Backend-Scripts | ||
| # export PATH=$PIPELINE_SCRIPTS:$PATH | ||
|
|
||
| trigger: none | ||
|
|
||
| parameters: | ||
| - name: deploymentEnvironment | ||
| displayName: "Target deployment environment - Environment where the package should be deployed to" | ||
| type: string | ||
| default: Acceptance | ||
| values: | ||
| - Integration | ||
| - Acceptance | ||
| - Production | ||
| - name: archiveType | ||
| displayName: "Archive Type - a preliminary build or release candidate" | ||
| type: string | ||
| default: build | ||
| values: | ||
| - build | ||
| - release | ||
| - name: archiveReference | ||
| displayName: "Archive Reference - either the branch name (like 'main') or release name (like 'rel-1.0.0') for the archive" | ||
| type: string | ||
| default: main | ||
| - name: archiveBuildIdentifier | ||
| displayName: "Archive Identifier - Identifier for the archive, like build number or timestamp" | ||
| type: string | ||
| default: "build-identifier" | ||
|
|
||
| # pipeline templates | ||
| resources: | ||
| repositories: | ||
| - repository: templates | ||
| type: git | ||
| name: PipelineCore/PipelineCore | ||
|
|
||
| # Agent pool where the pipeline runs | ||
| pool: | ||
| name: $(agentPool) | ||
|
|
||
| # Variables used in the pipeline | ||
| variables: | ||
|
|
||
| ### Variables generated during run time | ||
| organization: $[ replace(variables['organization_tmp'], '/', '') ] # Azure organization name | ||
| project: $(System.TeamProject) # Project name | ||
| application: ${{ variables['Build.Repository.Name'] }} # Application name | ||
| repo: "git@ssh.dev.azure.com:v3/$(organization)/$(project)/$(application)" # Git repository path | ||
| uniqueWorkspaceId: $(pipelineWorkspace)/$(application)/deployments/${{ parameters.archiveType }}/${{ parameters.archiveReference }}/build-$(Build.BuildNumber) # Calculated workspace path | ||
| packageName: $(application) # default name of the Package | ||
| buildNumber: ${{ parameters.archiveBuildIdentifier }} # Build reference | ||
| pipelineType: ${{ parameters.archiveType }} | ||
| branch: ${{ parameters.archiveReference }} | ||
|
|
||
| # Pipeline stages | ||
| stages: | ||
| - stage: Setup | ||
| jobs: | ||
| - job: Setup | ||
| continueOnError: false | ||
| steps: | ||
| - checkout: none | ||
| # Display CI-CD pipeline parms | ||
| - script: | | ||
| echo " " | ||
| echo " Deployment pipeline parameters" | ||
| echo "*******************************************" | ||
| echo "organization = $(organization)" | ||
| echo "project = $(project)" | ||
| echo "application = $(application)" | ||
| echo "repo = $(repo)" | ||
| echo " Archive information" | ||
| echo "archiveReference = $${{ parameters.archiveReference }}" | ||
| echo "archiveBuildIdentifier = $(buildNumber)" | ||
| echo "archiveType = $(pipelineType)" | ||
| echo " Connectivity" | ||
| echo "zosSSHConnection = $(zosSSHConnection)" | ||
| echo "zosHostname = $(zosHostname)" | ||
| echo "zosSFTPUser = $(zosSFTPUser)" | ||
| echo "ussWorkspaceRoot = $(pipelineWorkspace)" | ||
| echo "ussWorkspaceDir = $(uniqueWorkspaceId)" | ||
| echo " " | ||
| displayName: "Deploy pipeline parameters" | ||
|
|
||
| # Production environment | ||
| - stage: Deploy | ||
| displayName: "Deploy Package" | ||
| dependsOn: | ||
| - Setup | ||
| jobs: | ||
| - template: deployment/deployPackage.yml@templates | ||
| parameters: | ||
| environmentName: ${{ parameters.deploymentEnvironment }} | ||
| packageReference: "${{ parameters.archiveReference }}" | ||
| packageIdentifier: "${{ parameters.archiveBuildIdentifier }}" | ||
| packageType: "${{ parameters.archiveType }}" | ||
|
|
||
| # Cleanup | ||
| - stage: Cleanup | ||
| condition: always() | ||
| jobs: | ||
| - job: Cleanup | ||
| displayName: "Cleanup Deployment Workspace" | ||
| steps: | ||
| - checkout: none | ||
| - task: SSH@0 | ||
| inputs: | ||
| sshEndpoint: $(zosSSHConnection) | ||
| runOptions: "commands" | ||
| commands: ". ./.profile && deleteWorkspace.sh -w $(uniqueWorkspaceId)" | ||
| readyTimeout: "20000" | ||
| displayName: "Delete Deployment folder on USS" | ||
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
Binary file modified
BIN
-94.3 KB
(75%)
Templates/AzureDevOpsPipeline/images/ado_basicBuildPipeline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+60.3 KB
Templates/AzureDevOpsPipeline/images/ado_deployPipeline_requestDialogue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-25.1 KB
(93%)
Templates/AzureDevOpsPipeline/images/ado_featureBranchPipeline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-30.8 KB
(74%)
Templates/AzureDevOpsPipeline/images/ado_requestReleasePipeline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review the required parameters.