Questions tagged [gitlab-ci.yml]

222 questions
1
vote
1 answer

Why I can't pull a image to dependency proxy from GitLab?

I've tried pull a image to dependency proxy from GitLab, I've read the documentation https://docs.gitlab.com/14.10/ee/user/packages/dependency_proxy/ # .gitlab-ci.yml image: docker:19.03.12 variables: DOCKER_HOST: tcp://docker:2375 …
1
vote
1 answer

Change gitlab CI/CD exit code

I'm using docker to run a program as part of the CI/CD process. at the program, if the exit code is 2 I don't want the CI/CD to fail and only get a warning. added this to the gitlab-ci.yml file: allow_failure: exit_codes: - 2 but even…
Gal Yakir
  • 135
  • 1
  • 10
1
vote
0 answers

Error : RPC failed; curl 56 OpenSSL SSL_read: Operation timed out, errno 110

I have already installed rstudio server and shiny-server on my ubuntu machine (ec2 aws). I usually code in rstudio server, drop the scripts of my shiny applications in /srv/shiny-server and go to the url of the application to see it and everything…
1
vote
1 answer

How to insert a variable in a folded string in yaml?

How do I insert a variable in my .gitlab-ci.yml? I would like to insert it in the after_script section so I can make a webhook call with the link of the artifact, that is going to be generated with this pipeline. I tried the following, but it just…
davdog00
  • 93
  • 2
  • 13
1
vote
2 answers

Gitlab CI/CD for Playwright testcases working in local, but not while pushing

I am writing testcases for my project in Playwright. I have used GitLab for CI/CD and my config file goes this way .gitlab-ci.yml image: mcr.microsoft.com/playwright:focal variables: RP_TOKEN: "myToke" RP_LAUNCH: "myLaunch" RP_PROJECT_NAME:…
Arun Kenjila
  • 129
  • 1
  • 9
1
vote
0 answers

Auto increment the minor version for Ant build/version.properties and setting it in gitlab-ci.yml

We are using the ant build tool in our project. We have build.xml and stored the properties in build/version.properties. I am facing issues in task setting up a minor version from build.properties to GitLab-ci.yml. I want this minor version to…
1
vote
1 answer

AWS ECS images in two task definitions using gitlab pipelines

I have come pretty far in case of setting up everything necessary for building, deploying and running an docker image to AWS ECS. So far I have acheived: docker image is built and pushed to my private gitlab container registry AWS ECS cluster,…
1
vote
0 answers

gitlab-ci.yml file rule "changes" running even when the file is not changed

I want to run my pipeline only when a selected file (lets call it x.yml) is changed. The problem is that even when x.yml is unchanged, the job is running. When I compare my branch with the master branch, the file shows as not changed. My question…
1
vote
0 answers

Unable to stop, remove war file and start tomcat using SSH

I am trying to develop a GitLab pipeline to deploy a war file into EC2 tomcat. I am moving the war file successfully to EC2 to the folder home/ec2-user. From there I am trying to copy the war file to tomcat8/webapps folder which is before home (Main…
Subbu
  • 217
  • 2
  • 11
1
vote
1 answer

Copying a war file from GitLab to EC2

I am trying to create a CI/CD pipeline to build war file and deploy it to EC2 from GitLab. Once the war file is created, I would like to copy it to some folder in EC2 so that from there I would like to copy it to tomcat server. The following is the…
Subbu
  • 217
  • 2
  • 11
1
vote
0 answers

GitLab Rules for `master` & 'tags' only

i'm looking for a solution to execute a CI/CD job only for master and tags but at the same time I would like to check if the Dockerfile exists, which requires the use of rules What do I want to achieve I would like to build Docker images only for…
Nick
  • 66
  • 6
0
votes
1 answer

release cli in gitlab cannot do post request. How to write the command properly?

I want to set the artifact from previous job as the asset in the release, but it is said that the release-cli had failed to make a request to the gitlab url. How can I solve this? Why I got this error? Here is the error I am getting: release-cli…
FaFa
  • 358
  • 2
  • 16
0
votes
1 answer

bash script to find failed tests count in dotnet test

I am trying to get the easiest way to find the count of failed tests using the dotnet test command's flavors. I am running my tests in gitlab and use XUnit. Basically, the test summary of the dotnet test command gives the output as: Total tests: 10 …
DotNetDude
  • 73
  • 1
  • 2
  • 11
0
votes
0 answers

gitlab-ci: run manual jobs automatically on tags

Assuming this stripped down gitlab-ci.yaml: stages: - tests - build_release - deploy prepare-cache: stage: tests - "echo prepare some general stuff" build_release_frontend: stage: build_release when: manual needs: -…
Tobias
  • 1,220
  • 17
  • 35
0
votes
1 answer

Issue converting makefile scripts into gitlab-ci.yml scripts

I'm trying to move a script from a makefile into a gitlab yml file. In the makefile, there are commands that call environment variables as $(VAR). If I move this line into the yml file as part of a script for a stage, how do I alter this line to…