首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Bitbucket ssh管道失败

Bitbucket ssh管道失败
EN

Stack Overflow用户
提问于 2022-03-29 11:55:47
回答 1查看 497关注 0票数 -1

试着对管道进行2级弯管,但得到了泄漏误差。

配置错误--在管道>分支>暂存> 1处有一个错误。确切地说,步骤是空的,空的,或者是缺失的。

验证您的bitbucket-管道. your查看bitbucket-管道.your

代码语言:javascript
复制
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管道。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-03-29 12:26:13

代码语言:javascript
复制
pipelines:
  branches:
    staging:
      - step: *build
      - step:
          <<: *deploy
          name: Deploy to production
          deployment: staging
    production:
      - step: *build
      - step:
          <<: *deploy
          name: Deploy to production
          deployment: production
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71661560

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档