Questions tagged [environment-variables]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
119 views

Docker compose volume syntax valid for Windows and Linux

We have developers working on an app using both Windows and Linux. The application is built within a Docker container, and ships a docker-compose specification for the build environment. The local ...
1
vote
2answers
46 views

How to handle different credentials in continuous integration?

I am using teamcity to automatically build and test a nodejs application. The problem I am facing is that the application needs to have some environment variables set during the build phase, as well ...
2
votes
3answers
151 views

How to pass Gitlab env var with sensitive characters to bash script?

I have the following situation: I'm storing sensitive data in Gitlab's environment and then passing these variables to a deployment script in bash. Gitlab's env var: Key: sensitive_var Value: aaa$...
0
votes
1answer
20 views

Jenkins won't substitute variables when trying to check out from perforce

I want to generalize my code so that it can pull from perforce for any files marked with a type "perforce" because some files need to downloaded from the artifactory instead. I want to sub in the ...
0
votes
1answer
176 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
167 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
2k 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 "[*] ...
-1
votes
0answers
26 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
441 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
4k 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
121 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
71 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
2answers
56 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....
4
votes
1answer
5k 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
1k 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 ...