Skip to main content

All Questions

0 votes
0 answers
29 views

Execute Python code with GitLab parallel matrix in different OS (Windows and Linux)

I'd like to test my project's code with e2e tests, hopefully in different OS to ensure it works as expected not only in Linux systems but in other ones as well. To achieve this, I'd like to use GitLab'...
Santiago La corte's user avatar
0 votes
1 answer
80 views

Unable to Install and Update packages in gitlab-ci-yml

I have a gitlab-ci-yml script to deploy in my remote server, but I got a problem when installing ssh, I already force assigned the DNS but still the same problem and tried different image in docker ...
Adbul's user avatar
  • 43
2 votes
1 answer
248 views

Gitlab CI, artefacts

I am doing my first CI project and I have recently got confused about artefacts... Say I have config with next jobs: cleanup_build: tags: - block_autotest stage: cleanup script: - ...
IzaeDA's user avatar
  • 397
0 votes
1 answer
975 views

Attempted to initialize RESTObject with a non-dictionary value when adding file to GitLab project using python-gitlab

I am trying to create GitLab projects through GitLab CI pipeline by importing the GitLab export tar.gz file using python-gitlab library. The new project gets created but does not get initialized with ...
Ashmeet Pahwa's user avatar
0 votes
0 answers
160 views

gitlab ci/cd piple shell script is not working out of python script

The following script in gitlab ci/cd - but it works locally on runner machine. but when i try in gitlab it shows empty addres list - how tried array and everything its not working script: - > ...
joe's user avatar
  • 35.2k
-1 votes
1 answer
331 views

Cannot build sphinx autodocumentation with Django via GitLab (docker) pipeline

this problem might be quite specific. My setup This is my project structure. It's a Django project. ├── docs │ ├── build │ │ ├── doctrees │ │ └── html │ ├── Makefile │ └── source │ ...
kerfuffle's user avatar
  • 314
1 vote
1 answer
2k views

UnicodeEncodeError: 'latin-1' codec can't encode character '\u201c' in position 0: ordinal not in range (256) [duplicate]

I have a script that runs just fine on the local but fails with a UnicodeEncodeError message on a gitlab runner. Actual error message: UnicodeEncodeError: 'latin-1' codec can't encode character '\...
blackPanther's user avatar
1 vote
1 answer
2k views

Error pulling packages from gitlab private repository in CI job

As part of a gitlab CI job, I am using pip to install internally-developed packages that are stored using gitlab pypi. When I attempt to run pip install <PACKAGE_NAME>, I get the following error:...
professional_yet_not_trackable's user avatar
3 votes
2 answers
3k views

Poetry: Max retries exceeded with url in gitlab runner

I have a simple .gitlab-ci.yml script that builds my python project. image: python:3.9.6-slim-buster variables: PIP_DEFAULT_TIMEOUT: 300 before_script: - pip install poetry==1.1.7 - poetry ...
RoyalGoose's user avatar
0 votes
2 answers
305 views

How to run tests after server is up

Trying to create a GitLab-CI config, which should start a Python server and run some tests afterwards. So far, I've managed to fetch the right image and the server comes up. But afterwards, the script ...
Remo's user avatar
  • 1,432
2 votes
0 answers
957 views

Gitlab with specfic runner at DigitalOcean return error during connect dial tcp: lookup docker on 67.207.67.3:53: no such host

I'm trying to implement CD for my dockerized Django app using Gitlab with a specific runner at a DigitalOcean droplet. Here's my .gitlab-ci.yml image: name: docker/compose:1.29.2 entrypoint: [&...
Abdul Rehman's user avatar
  • 5,684
0 votes
1 answer
307 views

Python3 os.kill() is failing inside gitlab runner using windows dockers

I have following setup: windows 10 professional, running dockers-desktop (with "exec-opts": ["isolation=process"] - due msys issues) docker image that is built to contain msys2 - ...
susundberg's user avatar
0 votes
1 answer
6k views

Gitlab Job variable to use in python code

I am trying to create a pipeline and have defined some variable in my gitlab job which will be used by python script to populate results. Is there any way I can call/define those variable in my python ...
Rajesh's user avatar
  • 23
3 votes
3 answers
9k views

Gitlab-ci does not recognize python

I want to run my Jupyter notebooks with my pipeline. To do this i need runipy. And to install runipy on the gitlab runner i need python. But when i want to run the .gitlab-ci.yml script it gets stuck ...
dirk.z's user avatar
  • 133
5 votes
1 answer
3k views

Activating Conda environment in GitLab Config yml file for CI-CD using Shell Executor

I want to activate conda environment in my Gitlab CI-CD process. I registered Gitlab runner (v13.10) with Shell Executor on a local machine (UNIX) different from my work laptop I am trying to activate ...
Amy's user avatar
  • 55

15 30 50 per page