首页 > 解决方案 > 用于 Grails 4 的 Aws 构建管道

问题描述

部署代码在 Grails 的部署阶段失败我已经在 buildspech.yml 中显示了代码

version: 0.2

phases:
  install:
    runtime-versions:
      java: corretto11
  pre_build:
    commands:
      - echo "Entered Pre Build Phase"
  build:
    commands:
      - echo "Entered Build Phase"
      - echo "Copy Client Complete"
      - gradle assemble
      - echo "Assemble complete"
#      - cd server/build/libs
#      - echo "Inside Folder"
#      - unzip *.war
#      - rm *.war

  post_build:
    commands:
      - echo "Entered Post Build Phase"
artifacts:
  files:
     - server/build/**/*

我也尝试过 Files build/lib/**/*

在此处输入图像描述

标签: amazon-web-servicesgrailsdevopsaws-code-deploy

解决方案


推荐阅读