Questions tagged [gitlab-ci.yml]

222 questions
1
vote
1 answer

Gitlab CI/CD cache expires and therefor build fails

I got AWS CDK application in typescript and pretty simple gitlab CI/CD pipeline with 2 stages, which takes care of the deployment: image: node:latest stages: - dependencies - deploy dependencies: stage: dependencies only: refs: -…
1
vote
1 answer

GitLab CI/CD Pipeline - How to output the console logs of a job (Maven) as an artifact to download

I am currently creating a CI/CD pipeline in GitLab and have some jobs that run maven commands e.g. maven test-compile: stage: test script: - mvn clean test-compile These are simple console commands but I want to output the logs created by…
CSNova
  • 11
  • 2
1
vote
0 answers

npm ERR! when installing firebase tools in gitlab CI/CD

I am trying to integrate my Ionic app with Angular into Gitlab CI/CD. When running the jobs, my deploy job fails every time. The pipeline runs until the command - npm config set unsafe-perm true without any problems. Then I want to install the…
Soniix
  • 21
  • 3
1
vote
1 answer

How to tag a CI/CD build on success?

I want to (git) tag a state of the branch with successfully finishing a CI/CD pipleine E.g. compile test package deploy if all this stages worked well, I would like to have a tag /branchName/stableDeploy/ How can this be done with gitlab-CE? Of…
cilap
  • 2,215
  • 1
  • 25
  • 51
1
vote
1 answer

Is there a way to speed up docker build when using docker build in dind inside a gitlab-ci pipeline?

In gitlab-ci pipeline, I use docker-in-docker dind to build and push a docker image. Everytime the job starts, the building process starts from scratch although the changes that have been made affects only the last layer or last few layers. It is…
Ouss
  • 2,912
  • 2
  • 25
  • 45
1
vote
1 answer

how can I set dynamic variable in gitlab ci/cd

dynamic variable by command curl http://test.com I try to pass variables by this solution below but It's show as string "$(curl http://test.com)" how to solve it .test variables: SERVER : $(curl http://test.com)
1
vote
0 answers

docker : No subsytem for mount

I'm running a CI pipeline in gitlab-runner which is running on a linux machine. In the pipeline I'm trying to build an image. The Error I'm getting is, ci runtime error: rootfs_linux.go:53: mounting "/sys/fs/cgroup" to rootfs…
1
vote
1 answer

About Missing Remote File

When I run the pipeline, the Gitlab server alerts me that the remote YML file is missing, I used the Custom project CI config Path,(Setting => CI/CDL =>General pipelines=>Custom CI Config Path), below is my setup and error screen shot Custom CI…
Anti
  • 11
  • 2
1
vote
1 answer

Github action yml keeps failing: Invalid workflow file: .github/workflows/AzureARMDeploy.yml#L13

I have crossed check the syntax below and everything seem to be in order but it keeps failing, could someone please look through this syntax? on: # Triggers the workflow on push or pull request events but only for the "main" branch push: …
Jcide
  • 141
  • 1
  • 5
1
vote
0 answers

GitLab pipeline not building

I'm trying to do just a simple commit of a YAML config file on GitLab: pages: stage: deploy script: - mkdir .public - cp -r * .public - mv .public public artifacts: paths: - public only: - main But I'm getting an error when…
DiamondJoe12
  • 1,879
  • 7
  • 33
  • 81
1
vote
1 answer

Gitlab CI failure but continue to run problem

In gitLab, I create CI to build the project, for each stage I have 2 job seperately Build BookProject: stage: build <<: *dotnetbuild_job when: manual Build ShopProject: stage: build <<: *dotnetbuild_job when: manual Deploy…
Emily
  • 103
  • 8
1
vote
1 answer

Equivalent predefined variables in azure from gitlab

I am migrating from .gitlab-ci.yml to azure-pipelines.yml In one of the lines inside the .gitlab-ci.yml, there are variables $CI_PROJECT_ID,$CI_PIPELINE_ID, $CI_JOB_ID. I have figured out the equivalent for $CI_PROJECT_ID. In azure it is…
1
vote
2 answers

Suppress gitlab CI stage if push only changes README.md

I have a CI build stage that runs whenever someone pushes to the repo, and it takes a long time to run. So I want to configure a .gitlab-ci.yml rule that says if the user is only updating the documentation in README.md, it doesn't need to execute…
LWixson
  • 319
  • 3
  • 13
1
vote
0 answers

How can I access buildToolsVersion in android?

I need to access buildToolsVersion value in .gitlab-ci.yml file. But buildToolsVersion is not defined in gradle. How exactly can I access this?
Emre Memil
  • 233
  • 3
  • 5
1
vote
1 answer

Use includes in .gitlab-ci.yml without direct user access to included project

We are using includes from project B within project A within the .gitlab-ci.yml as follows: include: - project: pathto/projectb file: - "/pathto/myfile.yml" which works well when the user has access rights to both projects but breaks…
Cord Kaldemeyer
  • 6,405
  • 8
  • 51
  • 81