Questions tagged [environment-variables]

The tag has no usage guidance.

0
votes
0answers
14 views

Can we reuse Variables across variable groups in Azure DevOps?

I'm using DevOps to deploy Azure Data Factory ARM template I'm using a deployment pipeline to take artifacts from a prior build pipeline and deploy to various environments (TEST, PROD) I've created ...
0
votes
0answers
20 views

ASP.NET Core appsettings.json secrets values transformation per environment using Gitlab

We are using Gitlab in the new company I started and is something new for me, I am not a devops guy but before collaborating with devops and using Octopus Deploy I was able to setup secrets per ...
1
vote
1answer
56 views

Set environment variables then run script in Jenkins Scripted Pipeline

I am new to Jenkins, Groovy and pipelines. I have created a simple pipeline stage like so: //working build but not setting env variables node('build-01') { stage('Building') { echo "[*] ...
0
votes
0answers
20 views

Environment variables inside the container during use “exec”

I want to run a command outside the container through "exec", which would be executed respectively inside the container. The command runs cmake, which uses environment variables that are already ...
2
votes
3answers
157 views

docker-compose.yml - make network name configurable via environment variable

I have a docker compose file with env variables for stage specific configurations. As long as env variables are used in values in docker-compose.yml everything is fine, but the problem is with the ...
1
vote
1answer
2k views

How to define global variables in groovy file, which I want to load and consume?

I have a Jenkins parent groovy file which consumes the child groovy file Parent grooy file: ... def child = load 'child-groovy-file'; child.execute(); Child groovy file: a = "first letter"; b = "...
0
votes
2answers
43 views

How to get list of env variables from the root folder to jenkins job?

Using configure option, when we check the environment variables, we get only the variables which are available with in the folder or job. But, I want to get complete list of env variable from the ...
0
votes
3answers
69 views

Is there a php (or composer) command to change upload_max_filesize && post_max_size from terminal?

Is there a php (or composer) terminal command to change the php.ini variables upload_max_filesize and post_max_size from terminal to some value directly from terminal, without sed or awk operations? ...
2
votes
1answer
41 views

Environment variable names, when my development environment has multiple projects

The context is that I'm looking at doing staging/testing and production on a kubernetes cluster. Where I might have some code that looks like this: doSomething({ username: process.env....
0
votes
0answers
29 views

Valid use case for environment variable with length of zero?

Are there any valid use cases for allowing an environment variable to have a length of 0? $ FOO="" # why would anyone do this? The use case is that I'm writing a utility that parses environment ...
3
votes
1answer
4k views

Accessing the committer's name as a Jenkinsfile environment variable

Using the env.BRANCH_NAME variable accessible in the Jenkinsfile outside of the pipeline{} block, I have set up a variable used to conditionally set the node used to build the git branch. I would like ...
11
votes
2answers
957 views

How should I store my environment variables?

This is a very broad question about methods and advice regarding environment variables / structure. But ultimately I'm looking for answers for the very specific question of 'How should I store my ...