Skip to content

Commit

Permalink
Task/78334 partner devops (#60)
Browse files Browse the repository at this point in the history
build: adapted name of maven repo to Azure DevOps Environment for partners
ci: updated pipeline-stub to get template from public git repo
  • Loading branch information
A-Herold authored Aug 12, 2022
1 parent 2763bd5 commit 4e2d751
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 19 deletions.
73 changes: 56 additions & 17 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,64 @@
# see https://docs.microsoft.com/en-us/azure/devops/pipelines/process/resources?view=azure-devops&tabs=schema#define-a-repositories-resource
# Library iom-build-configuration is provided by Intershops DevOps Environment. It provides
# the following variables:
# - BUILD_AGENT_POOL: name of the build agent pool
# - REPO_SERVICE_CONNECTION: service connection to the customer ACR
# - REPO_PATH: host name and path of the customer ACR
# - INTERSHOP_REPO_SERVICE_CONNECTION: service connection to the Intershop container registry
# - INTERSHOP_REPO_PATH: host name and path of the Intershop container registry
variables:
- group: iom-build-configuration

# Create a repository resource to the Github repo, that is providing the centrally managed CI job.
resources:
repositories:
- repository: IOMDevopsRepo
type: git
name: order-iom-partner-devops
ref: develop
- repository: iom-partner-devops
type: github
endpoint: INTERSHOP_GITHUB
name: intershop/iom-partner-devops
ref: main

# Define, when the pipeline should be triggered.
# See https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/azure-repos-git?view=azure-devops&tabs=yaml#ci-triggers
trigger:
branches:
include:
- '*'

# see https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops#extend-from-a-template
# see https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops#use-other-repositories
extends:
template: template.yml@IOMDevopsRepo
parameters:
agentPool: ubuntu-20.4-DS4_v2-adopt-adoptium-jdk-ora
artifactsFeed: order-iom-releases
dockerRepoIOMServiceConnection: order-iom-docker.tools.intershop.com
dockerRepoIOM: docker.tools.intershop.com/iom/intershophub
acrServiceConnection: order-iomInternalACR-ISH-ENG-IOM
acr: iominternalacr.azurecr.io
projectEnvName: dev
# Run CI job. Additional custom stages/jobs might be added, see example below.
stages:
- stage: CI
jobs:
- template: ci-job-template.yml@iom-partner-devops
parameters:
# You have to set here the name of the environment, that is providing the CI specific configuration!
projectEnvName: dev

# Project images, built and tested by the DevOps pipeline, are published to the project ACR only, if
# the name of the branch matches the regex passed in parameter branchesForPublication. If the default
# behavior does not fit your requirements, activate the following line and adapt the regular expression.
#branchesForPublication: '^refs/heads/develop$\|^refs/heads/master$\|^refs/heads/main$\|^refs/heads/release/\|^refs/heads/hotfix/'

# These parameters must not be changed. They are used to pass variables to the ci-job templaten, which
# are defined by library iom-build-configuration.
agentPool: $(BUILD_AGENT_POOL)
artifactsFeed: iom-maven-artifacts
dockerRepoIOMServiceConnection: $(INTERSHOP_REPO_SERVICE_CONNECTION)
dockerRepoIOM: $(INTERSHOP_REPO_PATH)
acrServiceConnection: $(REPO_SERVICE_CONNECTION)
acr: $(REPO_PATH)

# The following block shows a very simple example, how to extend the DevOps pipeline by a custom
# job. Alternatively one or more stages could be added, see:
# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/stages?view=azure-devops
#- job: custom
# pool: $(BUILD_AGENT_POOL)
# continueOnError: false
# timeoutInMinutes: 5
# workspace:
# clean: all
# steps:
# - checkout: self
# path: project
# clean: true
# timeoutInMinutes: 5
# displayName: "Checkout IOM project @$(Build.SourceBranchName)"
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

<repositories>
<repository>
<id>order-iom-releases</id>
<url>https://pkgs.dev.azure.com/intershop-com/Products/_packaging/order-iom-releases/maven/v1</url>
<id>iom-maven-artifacts</id>
<url>https://pkgs.dev.azure.com/intershop-com/Products/_packaging/iom-maven-artifacts/maven/v1</url>
<releases>
<enabled>true</enabled>
</releases>
Expand Down

0 comments on commit 4e2d751

Please sign in to comment.