Questions tagged [gitlab-ci.yml]

222 questions
0
votes
1 answer

gitlab-ci pass dynamic variable to environment.url

I want to be able to set dynamic environment url in gitlab yml. ... environment: url: $ENVIRONMENT_URL/?env=${echo $CI_COMMIT_TAG | grep -o '[^@]*$'} ... I know that I can't use bash command in url, it should be string or variable. Is there a…
kndev
  • 1
0
votes
2 answers

What's the difference between $VAR and $(VAR) in gitlab yaml and makefile

I'm working on a gitlab pipeline with a makefile. In the yaml file, there are environment variables defined as $VAR = 'var' (for example), but in the makefile they're referenced as $(VAR). I tried to print to the command line via echo in the…
0
votes
1 answer

gitlab child pipeline generated from artifacts, not running job based on rules in child pipeline

This the content of child pipeline, generated from jinja template and stored as artifacts in the previous job. While triggering this child pipeline, it says, no stage or no job for this child pipeline. Test_Container_10.10.102.240: stage: TEST …
0
votes
0 answers

Ho to run specific jobs in .gitlab-ci.yml based on which directories were changed

I am creating a pipeline for a gitlab repo that will have 4 jobs, each job will run depending on which sub-directory in the root directory was changed. The pipeline will run on every merge request created and committed to. I have followed the gitlab…
0
votes
1 answer

gitlab-ci.yml variable with forward slashes

In some existing code I see the following syntax for variables in .gitlab-ci.yml. ${CI_COMMIT_REF_NAME////-} What do the forward slashes with the hyphen mean?
ontherocks
  • 1,747
  • 5
  • 26
  • 43
0
votes
0 answers

Way to make a job with needs on a generated job

I've been working on a way to implement visual regression testing for my websites. I'm doing this with Diffy in the gitlab CI:CD now im running into one issue, I generate jobs to make baseline screenshots to test before and after the push to…
0
votes
0 answers

Configuration of gitlab-ci.yml file for maven project

I want to run 3 different jobs for 3 testNG suits on pipeline with in an order. with this configuration each job runs all tests , actually this configuration doesn’t take this suits from this file, it runs what pom.xml has, it has these 3…
esra
  • 1
0
votes
0 answers

Publishing package to NPM

I'm trying to publish package to NPM using github action. YML file name: Publish to NPM on: release: types: [published] jobs: build: runs-on: ubuntu-latest steps: - name: 'Check out the repo' uses:…
0
votes
0 answers

Scheduling Test runs in ADO pipeline with YML

New to ADO and pipeline. I am trying to schedule to execute test runs in ADO pipeline with YML and running into an issue with defining the Tests (e.g. Smoke test or Regression Tests) and the environment. Here is the sample of schedule I have in yml…
Jack Paul
  • 1
  • 2
0
votes
0 answers

Reconstructing GitLab CI URL path to artifacts

I'm trying to construct a CI variable with an URL that points to the web access to GitLab CI artifacts; in order to use that variable for environments (MR previews). In short, for a project in group topgroup, subgroups gr1/gr2, project name…
exa
  • 859
  • 7
  • 27
0
votes
0 answers

Gitlab Ci Pipeline Rules not working as intended

So I have two protected environments stage and prod and I'm trying to achieve the following : Trigger child pipeline when a merge request is opened and the target branch is protected and stage Trigger child pipeline when MR is merged to a protected…
kofisis
  • 15
  • 4
0
votes
1 answer

Gitlab-CI how to use artifacts from different branch in same project pipeline

I require my pipeline to download artifacts that are generated on my develop branch that are used as a basis for comparison in my tests in other branches. Essentially my snapshots job that is run only on develop branch generates a bunch of snapshots…
Martin
  • 161
  • 1
  • 6
0
votes
0 answers

docker amazon/aws-glue-libs permission gitlab-ci

I have a GitLab-CI with a job that contains: test_glue: image: amazon/aws-glue-libs:glue_libs_4.0.0_image_01 stage: unittest script: - yum update -y && yum install -y jq blablabla - chmod +x script.sh - ./script.sh However, I am…
0
votes
1 answer

Docker built successfully but no built image show up in the docker images

I was create flask-app and deploy it using docker, i deploy manually in mac and success, this is my Dockerfile script : # start by pulling the python image FROM python:3.8-alpine # copy the requirements file into the image COPY ./requirements.txt…
0
votes
1 answer

Gitlab 16.0 CE return error on a simple gitlab-ci file

Today I updated my Gitlab CE to latest version 16.0.4 but after that I couldn't run pipeline on my old projects. Installation type: Self-managed (sudo apt install gitlab-ce) The version of the runner: 16.0.2 Executor: Docker Default image: Python…