试着对管道进行2级弯管,但得到了泄漏误差。
配置错误--在管道>分支>暂存> 1处有一个错误。确切地说,步骤是空的,空的,或者是缺失的。
验证您的bitbucket-管道. your查看bitbucket-管道.your
image: node:14
definitions:
steps:
- step: &build
caches:
- node
script:
- npm install
- step: &deploy
name: Deploy to server
script:
- echo "Deploying to production environment"
- pipe: atlassian/ssh-run:0.2.2
variables:
SSH_USER: 'ubuntu'
SERVER: $SERVER_IP
COMMAND: '/home/ubuntu/backend/cyan/deployment.sh'
pipelines:
branches:
staging:
- step: *build
- step:
<<: *deploy
name: Deploy to production
deployment: staging
production:
- step: *build
- step:
<<: *deploy
name: Deploy to production
deployment: production我会感谢任何帮助,因为我刚刚开始使用bitbucket管道。
发布于 2022-03-29 12:26:13
pipelines:
branches:
staging:
- step: *build
- step:
<<: *deploy
name: Deploy to production
deployment: staging
production:
- step: *build
- step:
<<: *deploy
name: Deploy to production
deployment: productionhttps://stackoverflow.com/questions/71661560
复制相似问题