Закрыт

Gitlab job variable in python script

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 script.

For example:

.test-report:

extends: .test_report_setup

tags: *def_runners_tags

variables:

value-path: ${CI_PROJECT_DIR}/value

Now in my python script I want to call the variable 'value-path' to fetch or read files located in that directory.

file_path = '<value-path>' <---- To get the gitlab job variable here

file_in = open(file_path + "[login to view URL]")

Навыки: Python, GitLab

Показать больше: create job application form script, create webform calls python script, python script create feed engine, create python script backup, python script create playlist spotify, create simple python script, create dbf file python script, python script create simple mysql database, cron job python script ubuntu, create gui for python script, python script to create virtual machine, pass javascript variable to python script, create python script, python script to create cron job, jenkins groovy create pipeline job, ubuntu cron job run python script, sql server job execute python script, running python script from c# and working with the results, python script to create gmail accounts, how to run python script in jenkins pipeline

О работодателе:
( 0 отзыв(-а, -ов) ) United Kingdom

ID проекта: #29803067

1 фрилансеров готовы выполнить эту работу в среднем за ₹250

MohitGoyal19

Hi I am skilled in Python development and can help you with this. Please message and share complete details on this problem. Thanks and Regards Mohit

₹250 INR / час
(7 отзывов(-а))
3.0