Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output environment variables once per job instead of per task #871

Closed
srinivasupadhya opened this issue Feb 4, 2015 · 1 comment

Comments

Projects
None yet
7 participants
@srinivasupadhya
Copy link
Contributor

commented Feb 4, 2015

[go] Start to execute task: <exec command="./bn" workingdir="gocd" >
<arg>clean</arg>
<arg>cruise:prepare</arg>
</exec>. 
[go] setting environment variable 'GO_ENVIRONMENT_NAME' to value 'gocd'
[go] setting environment variable 'TZ' to value 'Asia/Calcutta'
[go] setting environment variable 'TLB_BASE_URL' to value ''
[go] setting environment variable 'MAVEN_OPTS' to value '-Xms256m -Xmx1024m'
[go] setting environment variable 'GO_SERVER_URL' to value ''
[go] setting environment variable 'GO_TRIGGER_USER' to value 'changes'
[go] setting environment variable 'GO_PIPELINE_NAME' to value 'build-linux'
[go] setting environment variable 'GO_PIPELINE_COUNTER' to value '348'
[go] setting environment variable 'GO_PIPELINE_LABEL' to value '15.1.0.348-4840f33d6c612951f60789cce6eca1458cbb01c3'
[go] setting environment variable 'GO_STAGE_NAME' to value 'build-non-server'
[go] setting environment variable 'GO_STAGE_COUNTER' to value '1'
[go] setting environment variable 'GO_JOB_NAME' to value 'agent'
[go] setting environment variable 'GO_REVISION_GOCD' to value '4840f33d6c612951f60789cce6eca1458cbb01c3'
[go] setting environment variable 'GO_TO_REVISION_GOCD' to value '4840f33d6c612951f60789cce6eca1458cbb01c3'
[go] setting environment variable 'GO_FROM_REVISION_GOCD' to value '71cb03e270059208b4fb6af86e07412208199bcf'
[go] setting environment variable 'GO_VERSION' to value '15.1.0'
[go] setting environment variable 'SKIP_WAR' to value 'Y'
[go] setting environment variable 'TLB_SPLITTER' to value 'tlb.splitter.DefaultingTestSplitter'
[go] setting environment variable 'TLB_PREFERRED_SPLITTERS' to value 'tlb.splitter.TimeBasedTestSplitter:tlb.splitter.CountBasedTestSplitter'
[go] setting environment variable 'TLB_ORDERER' to value 'tlb.orderer.FailedFirstOrderer'
[go] setting environment variable 'TLB_TMP_DIR' to value '/tmp'
[go] setting environment variable 'load_balance' to value 'yes'
[go] setting environment variable 'TLB_JOB_VERSION' to value '${GO_PIPELINE_COUNTER}-${GO_RERUN_OF_STAGE_COUNTER:GO_STAGE_COUNTER}'
[go] setting environment variable 'TYPE_OF_SERVER' to value 'tlb.service.TlbServer'
[go] setting environment variable 'SPLIT_CORRECTNESS_CHECKER' to value 'tlb.splitter.correctness.AbortOnFailure'
[go] setting environment variable 'TLB_JOB_NAME' to value '${GO_PIPELINE_NAME}-build-non-server'
...
[go] Current job status: passed.

[go] Start to execute task: <exec command="mvn" workingdir="gocd/agent" >
<arg>clean</arg>
<arg>test</arg>
</exec>. 
[go] setting environment variable 'GO_ENVIRONMENT_NAME' to value 'gocd'
[go] setting environment variable 'TZ' to value 'Asia/Calcutta'
[go] setting environment variable 'TLB_BASE_URL' to value ''
[go] setting environment variable 'MAVEN_OPTS' to value '-Xms256m -Xmx1024m'
[go] setting environment variable 'GO_SERVER_URL' to value ''
[go] setting environment variable 'GO_TRIGGER_USER' to value 'changes'
[go] setting environment variable 'GO_PIPELINE_NAME' to value 'build-linux'
[go] setting environment variable 'GO_PIPELINE_COUNTER' to value '348'
[go] setting environment variable 'GO_PIPELINE_LABEL' to value '15.1.0.348-4840f33d6c612951f60789cce6eca1458cbb01c3'
[go] setting environment variable 'GO_STAGE_NAME' to value 'build-non-server'
[go] setting environment variable 'GO_STAGE_COUNTER' to value '1'
[go] setting environment variable 'GO_JOB_NAME' to value 'agent'
[go] setting environment variable 'GO_REVISION_GOCD' to value '4840f33d6c612951f60789cce6eca1458cbb01c3'
[go] setting environment variable 'GO_TO_REVISION_GOCD' to value '4840f33d6c612951f60789cce6eca1458cbb01c3'
[go] setting environment variable 'GO_FROM_REVISION_GOCD' to value '71cb03e270059208b4fb6af86e07412208199bcf'
[go] setting environment variable 'GO_VERSION' to value '15.1.0'
[go] setting environment variable 'SKIP_WAR' to value 'Y'
[go] setting environment variable 'TLB_SPLITTER' to value 'tlb.splitter.DefaultingTestSplitter'
[go] setting environment variable 'TLB_PREFERRED_SPLITTERS' to value 'tlb.splitter.TimeBasedTestSplitter:tlb.splitter.CountBasedTestSplitter'
[go] setting environment variable 'TLB_ORDERER' to value 'tlb.orderer.FailedFirstOrderer'
[go] setting environment variable 'TLB_TMP_DIR' to value '/tmp'
[go] setting environment variable 'load_balance' to value 'yes'
[go] setting environment variable 'TLB_JOB_VERSION' to value '${GO_PIPELINE_COUNTER}-${GO_RERUN_OF_STAGE_COUNTER:GO_STAGE_COUNTER}'
[go] setting environment variable 'TYPE_OF_SERVER' to value 'tlb.service.TlbServer'
[go] setting environment variable 'SPLIT_CORRECTNESS_CHECKER' to value 'tlb.splitter.correctness.AbortOnFailure'
[go] setting environment variable 'TLB_JOB_NAME' to value '${GO_PIPELINE_NAME}-build-non-server'
...

The duplicate printing makes console.log bigger & harder to read

@srinivasupadhya srinivasupadhya changed the title write env. variables to console once rather than per job write env. variables to console once rather than per task of the job Feb 4, 2015

srinivasupadhya added a commit to srinivasupadhya/gocd that referenced this issue Feb 4, 2015

srinivasupadhya added a commit to srinivasupadhya/gocd that referenced this issue Feb 4, 2015

@srinivasupadhya srinivasupadhya added this to the Release 15.1 milestone Feb 4, 2015

@srinivasupadhya srinivasupadhya self-assigned this Feb 4, 2015

srinivasupadhya added a commit to srinivasupadhya/gocd that referenced this issue Feb 9, 2015

srinivasupadhya added a commit to srinivasupadhya/gocd that referenced this issue Feb 17, 2015

@arikagoyal arikagoyal added PR waiting and removed in progress labels Feb 23, 2015

@arikagoyal arikagoyal added the high label Mar 2, 2015

@arikagoyal arikagoyal removed the in progress label Mar 24, 2015

@arikagoyal arikagoyal modified the milestone: Release 15.1 Apr 16, 2015

@arvindsv arvindsv added this to the Unknown - Needs interest from someone milestone Jan 4, 2016

@arvindsv arvindsv added this to the Unknown - Needs interest from someone milestone Jan 4, 2016

wpc added a commit to wpc/gocd that referenced this issue Jan 21, 2016

wpc added a commit to wpc/gocd that referenced this issue Jan 21, 2016

wpc added a commit to wpc/gocd that referenced this issue Jan 22, 2016

gocd#871 (output env variable once): Report overriding when user set …
…an env variable overlap with process level environment variable.

wpc added a commit to wpc/gocd that referenced this issue Jan 22, 2016

gocd#871 (output env variable once): fix build failure -- all GO_* en…
…vironment variables become overridden cases while running on build server.

ketan pushed a commit to ketan/gocd that referenced this issue Feb 1, 2016

gocd#871 (output env variable once): refactoring: separate console ou…
…tput logic from runtime environment setup.

ketan added a commit to ketan/gocd that referenced this issue Feb 1, 2016

ketan added a commit to ketan/gocd that referenced this issue Feb 1, 2016

ketan added a commit to ketan/gocd that referenced this issue Feb 1, 2016

gocd#871 (output env variable once): Report overriding when user set …
…an env variable overlap with process level environment variable.

ketan added a commit to ketan/gocd that referenced this issue Feb 1, 2016

gocd#871 (output env variable once): fix build failure -- all GO_* en…
…vironment variables become overridden cases while running on build server.

ketan added a commit that referenced this issue Feb 1, 2016

Merge pull request #1857 from ketan/pr/1820
Output env variable once per job instead of per task (#871)

ketan added a commit to ketan/gocd that referenced this issue Feb 2, 2016

ketan added a commit that referenced this issue Feb 2, 2016

@ketan ketan modified the milestones: Release 16.2, Release: Unknown Feb 11, 2016

@ketan ketan changed the title write env. variables to console once rather than per task of the job Output environment variables once per job instead of per task Feb 11, 2016

@rajiesh

This comment has been minimized.

Copy link
Contributor

commented Feb 11, 2016

verified on 16.2.0-3018 (bf8cd73) and working as expected

@zabil zabil closed this Feb 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.