Details
-
Bug
-
Resolution: Fixed
-
Highest
Description
I am receiving this error when trying to deploy to Azure production:
The environment 'production' in your bitbucket-pipelines.yml doesn’t match any environment defined in your settings. Either update your yml, or your settings, to use the same name.
I don’t understand what is wrong with my configuration file which is:
image: node:10.15.0
pipelines:
branches:
development:
- step:
name: Build
caches: - node
script: - cd Client
- yarn install
- yarn run build:prod
- yarn run package
artifacts: - Client/_.zip
- step:
name: Deploy to Dev
script: - pipe: atlassian/azure-web-apps-deploy:0.2.1
variables:
APP_ID: $APP_ID
PASSWORD: $PASSWORD
TENANT_ID: $TENANT_ID
RESOURCE_GROUP: $RESOURCE_GROUP
NAME: 'PlantedRecoveryApp'
ZIP_FILE: 'Client/sources.zip'
SLOT: 'Dev'
uat: - step:
name: Build
caches: - node
script: - cd Client
- yarn install
- yarn run build:prod
- yarn run package
artifacts: - Client/_.zip
- step:
name: Deploy to QA
deployment: test
script: - pipe: atlassian/azure-web-apps-deploy:0.2.1
variables:
APP_ID: $APP_ID
PASSWORD: $PASSWORD
TENANT_ID: $TENANT_ID
RESOURCE_GROUP: $RESOURCE_GROUP
NAME: 'PlantedRecoveryApp'
ZIP_FILE: 'Client/sources.zip'
SLOT: 'QA'
beta: - step:
name: Build
caches: - node
script: - cd Client
- yarn install
- yarn run build:prod
- yarn run package
artifacts: - Client/_.zip
- step:
name: Deploy to Staging
deployment: staging
script: - pipe: atlassian/azure-web-apps-deploy:0.2.1
variables:
APP_ID: $APP_ID
PASSWORD: $PASSWORD
TENANT_ID: $TENANT_ID
RESOURCE_GROUP: $RESOURCE_GROUP
NAME: 'PlantedRecoveryApp'
ZIP_FILE: 'Client/sources.zip'
SLOT: 'Staging'
master: - step:
name: Build
caches: - node
script: - cd Client
- yarn install
- yarn run build:prod
- yarn run package
artifacts: - Client/_.zip
- step:
name: Deploy to Production
deployment: production
script: - pipe: atlassian/azure-web-apps-deploy:0.2.1
variables:
APP_ID: $APP_ID
PASSWORD: $PASSWORD
TENANT_ID: $TENANT_ID
RESOURCE_GROUP: $RESOURCE_GROUP
NAME: 'PlantedRecoveryApp'
ZIP_FILE: 'Client/sources.zip'