【发布时间】:2019-12-10 11:02:33
【问题描述】:
我正在尝试制作一个 bitbucket 管道,以便可以部署到三个环境(开发、生产、测试)。
我有这个,但它似乎没有按预期工作
image: maven:3.3.9
pipelines:
default:
- step:
name: Build and Test
script:
- mvn clean install
- mvn package
- step:
name: Deploy to production
script:
- -Dspring.profiles.active=production
- mvn clean install
- mvn deploy
- step:
name: Deploy to development
script:
- -Dspring.profiles.active=develop
- mvn clean install
- mvn deploy
- step:
name: Deploy to testing
script:
- -Dspring.profiles.active=test
- mvn clean install
- mvn deploy
【问题讨论】:
标签: bitbucket bitbucket-pipelines bitbucket-cloud