Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 无法运行gitlab autodevops_Amazon Web Services_Jenkins_Gitlab_Terraform_Gitlab Autodevops - Fatal编程技术网

Amazon web services 无法运行gitlab autodevops

Amazon web services 无法运行gitlab autodevops,amazon-web-services,jenkins,gitlab,terraform,gitlab-autodevops,Amazon Web Services,Jenkins,Gitlab,Terraform,Gitlab Autodevops,我已经创建了一个terraform ansible脚本,它将启动6实例并在这些实例上安装confluent kafka,但当我尝试在gitlab中运行autodevops时,每次失败时都会出现以下错误: Running with gitlab-runner 13.9.0-rc2 (69c049fd) on docker-auto-scale ed2dce3a feature flags: FF_GITLAB_REGISTRY_HELPER_IMAGE:true Preparing the

我已经创建了一个terraform ansible脚本,它将启动6实例并在这些实例上安装confluent kafka,但当我尝试在gitlab中运行autodevops时,每次失败时都会出现以下错误:

Running with gitlab-runner 13.9.0-rc2 (69c049fd)
  on docker-auto-scale ed2dce3a
  feature flags: FF_GITLAB_REGISTRY_HELPER_IMAGE:true
Preparing the "docker+machine" executor
Using Docker executor with image maven:3.3.9-jdk-8 ...
Pulling docker image maven:3.3.9-jdk-8 ...
Using docker image sha256:9997d8483b2fc521a4159feab922546dda0c5c22b5084f86dfab48f123ae4364 for maven:3.3.9-jdk-8 with digest maven@sha256:18e8bd367c73c93e29d62571ee235e106b18bf6718aeb235c7a07840328bba71 ...
Preparing environment
00:03
Running on runner-ed2dce3a-project-25510794-concurrent-0 via runner-ed2dce3a-srm-1618245795-342a0929...
Getting source from Git repository
00:02
$ eval "$CI_PRE_CLONE_SCRIPT"
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/psyncopate/psyncopate-cp-ansible-terraform-aws/.git/
Created fresh repository.
Checking out 9b30dfd8 as master...
Skipping Git submodules setup
Restoring cache
00:01
Checking cache for default...
FATAL: file does not exist                         
Failed to extract cache
Executing "step_script" stage of the job script
Using docker image sha256:9997d8483b2fc521a4159feab922546dda0c5c22b5084f86dfab48f123ae4364 for maven:3.3.9-jdk-8 with digest maven@sha256:18e8bd367c73c93e29d62571ee235e106b18bf6718aeb235c7a07840328bba71 ...
$ if [ ! -f ci_settings.xml ]; then echo "CI settings missing\! If deploying to GitLab Maven Repository, please see https://docs.gitlab.com/ee/user/project/packages/maven_repository.html#creating-maven-packages-with-gitlab-cicd for instructions."; fi
$ mvn clean package deploy -s ci_settings.xml
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.130 s
[INFO] Finished at: 2021-04-12T16:44:42+00:00
[INFO] Final Memory: 5M/56M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/builds/psyncopate/psyncopate-cp-ansible-terraform-aws). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
Cleaning up file based variables
ERROR: Job failed: exit code 1
这是我的.gitlab-ci.yml

# This template uses jdk8 for verifying and deploying images
image: maven:3.3.9-jdk-8

variables:
  MAVEN_CLI_OPTS: "-DskipMunitTests -U clean package"
  MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"

cache:
  paths:
    - .m2/repository/
    - target/

# To deploy packages from CI, create a ci_settings.xml file
# For deploying packages to GitLab's Maven Repository: See https://docs.gitlab.com/ee/user/project/packages/maven_repository.html#creating-maven-packages-with-gitlab-cicd for more details.
# Please note: The GitLab Maven Repository is currently only available in GitLab Premium / Ultimate.
# For `master` branch run `mvn deploy` automatically.
deploy:jdk8:
  stage: build
  script:
    - if [ ! -f ci_settings.xml ];
        then echo "CI settings missing\! If deploying to GitLab Maven Repository, please see https://docs.gitlab.com/ee/user/project/packages/maven_repository.html#creating-maven-packages-with-gitlab-cicd for instructions.";
      fi
    - mvn clean package deploy -s ci_settings.xml
  only:
    - master
有人能帮忙吗?我错过什么了吗