First, create azure-pipelines.yml
file in the root directory of your project.
...
Navigate to Pipelines > Create new Pipeline.
Select the source GIT repository which will be most probably your Azure repos Git.
Select the name of the repository.
Select Starter pipeline and add following content
Code Block 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
Notes:
You should set the name of the job to correspond to your partition, eg.
Deploy QA
orDeploy PROD
You must set the PARTITION and URL variables for your environment
You must set which branch to use for the source under
trigger
sectionClick Save. This will create
azure-pipelines.yml
file in the root directory of your project.Click Variables and create variables PFX_USER and PFX_PASS CI variables must be set up by Azure admin as
Set:
Add variable PFX_USER and set value to 'pfx.deploy' and click OK.
Add variable PFX_PASS and set to a strong password (at least 14 characters, at least 1 digit, at least 1 capital letter). Select “Keep this value secret” and click OK.
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:
You should set the
displayName
to correspond to your partition, eg.Deploy QA
orDeploy PROD
You must set the PARTITION and URL variables to the right values of your environment
You must set which branch to use for the source under
trigger
section