Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This guide is intented to be used by partners or customers which want to use their own Azure devops as their GIT repository and CI/CD tool instead of GitLab.

Make sure you have sufficient rights in Azure.

  1. Navigate to Pipelines > Create new Pipeline.

  2. Select the source GIT repository. Most probably this will be “Azure repos Git”.

  3. Select the right GIT repository.

  4. Select Starter pipeline and replace the existing editor content with the following:

    trigger:
    - qa
    steps:
    - script: docker run pricefx/pfxpackage pfxpackage -import -timeout 120 -url ${URL} -user ${PFX_USER} -password $(PFX_PASS) -partition ${PARTITION} -from . ${OPTIONS}
      displayName: 'Deploy QA'
      env:
        PARTITION: partition-qa
        URL: https://qa.pricefx.eu
  5. Click Save. This will create azure-pipelines.yml file in the root directory of your project.

  6. Click Variables and create variables PFX_USER and PFX_PASS:

    • Add variable PFX_USER and set value to 'pfx.deploy' and click OK.

    • Add variable PFX_PASS and set value to be strong password (at least 14 characters, at least 1 digit, at least 1 capital letter). Select “Keep this value secret” and click OK.

  7. Create a user account 'pfx.deploy' in the target partitions (QA, PROD) which has General Admin privileges in each of the partitions where you want to enable deployment and set the password identical to the PFX_PASS variable.

Notes:

  1. You should set the displayName to correspond to your partition, eg. Deploy QA or Deploy PROD

  2. You must set the PARTITION and URL variables to the right values of your environment

  3. You must set which branch to use for the source under trigger section

  • No labels