[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-21 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto edited a comment on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 [~mbtc]I'vetriedtoreproducethebuginthisenvironment:Jenkinsver.1.532.3,GradlePlugin1.24andEnvInjectPlugin1.92(latestrelease).Withthis{{build.gradle}}andGradle2. 5 6 :{code}taskshowGlobalEnv{println'Testmatch:'+(System.env.TEST_ENV=='T123')System.env.TEST_ENV.each{printlnit}}{code}Igetthisresult:{code}recena@andromeda:~/projects/gradle-helloworld$gradle-bbuild.gradleshowGlobalEnv:showGlobalEnvTestmatch:falseBUILDSUCCESSFULTotaltime:4.227secs{code}Probably,I'mdoingsomethingwrong.Anyidea?h4.MytestAnyway,I'veconfigurethefollowingFreeStyleJob:#Gitrepo:https://github.com/recena/gradle-helloworld#Checkstheoption*Injectenvironmentvariablestothebuildprocess*##In*PropertiesContent*fieldI'vedefined:{{VAR=VAR2}}#Checkstheoption*Injectpasswordstothebuildasenvironmentvariables*##Checkstheoption*Globalpasswords*becauseI'vedefinedalsoaglobalpassword:{{PASSWORDGLOBAL=PASSWORDGLOBAL}}##Note:IhavetoinvestigateifMaskpasswordparametersoptionisworkinghowitexpect.Done(y)#AddsaGradleBuildstep:##Usestheoption*InvokeGradle*andselectsGradle2.5##In*Tasks*fieldI'vedefinethenameofourtask:{{showGlobalEnv}}#AddsaSHELLstepwith:{code}echo$VARecho$PASSWORDLOCALecho$PASSWORDGLOBAL{code}h5.Consoleoutput{code}[EnvInject]-Injectglobalpasswords.Startedbyuseranonymous[EnvInject]-Loadingnodeenvironmentvariables.Buildinginworkspace/home/recena/projects/envinject-plugin/work/jobs/JENKINS-27382/workspacegitrev-parse--is-inside-work-tree#timeout=10FetchingchangesfromtheremoteGitrepositorygitconfigremote.origin.urlhttps://github.com/recena/gradle-helloworld.git#timeout=10Fetchingupstreamchangesfromhttps://github.com/recena/gradle-helloworld.gitgit--version#timeout=10git-ccore.askpass=truefetch--tags--progresshttps://github.com/recena/gradle-helloworld.git+refs/heads/*:refs/remotes/origin/*gitrev-parserefs/remotes/origin/master^{commit}#timeout=10gitrev-parserefs/remotes/origin/origin/master^{commit}#timeout=10CheckingoutRevisionb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5(refs/remotes/origin/master)gitconfigcore.sparsecheckout#timeout=10gitcheckout-fb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5gitrev-listb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5#timeout=10[EnvInject]-ExecutingscriptsandinjectingenvironmentvariablesaftertheSCMstep.[EnvInject]-InjectingasenvironmentvariablesthepropertiescontentVAR=VAR1[EnvInject]-Variablesinjectedsuccessfully.[Gradle]-Launchingbuild.[workspace]$/home/recena/projects/envinject-plugin/work/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.6/bin/gradleshowGlobalEnv:showGlobalEnvVARwasinjectedusingthefieldPropertiesContent:VAR1VAR1PASSWORDLOCALwasinjectedusingtheoptionInjectpasswords:PASSWORDGLOBALwasinjectedusingtheoptionInjectpasswords:BUILDSUCCESSFULTotaltime:2.554secsThisbuildcouldbefaster,pleaseconsiderusingtheGradleDaemon:https://docs.gradle.org/2.6/userguide/gradle_daemon.htmlBuildstep'InvokeGradlescript'changedbuildresulttoSUCCESS[workspace]$/bin/sh-xe/tmp/hudson5969723979230846787.sh+echoVAR1VAR1+echo+echoFinished:SUCCESS{code}h5.EnvironmentVariables(URL:JOB_NAME/BUILD_ID/injectedEnvVars/)*{{VAR=VAR1}}(/)*{{PASSWORDLOCAL=}}(/)*{{PASSWORDGLOBAL=}}(/)h5.EnvironmentVariables(FILESYSTEM:jobs/JOB_NAME/lastSuccessful/injectedEnvVars.txt){code}VAR=VAR1PASSWORDGLOBAL=PASSWORDLOCAL={code}/cc[~schristou] 
 
 
 
 
 
 
 
 
 
 
 
 
  

[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-21 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto edited a comment on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 [~mbtc]I'vetriedtoreproducethebuginthisenvironment:Jenkinsver.1.532.3,GradlePlugin1.24andEnvInjectPlugin1.92(latestrelease).Withthis{{build.gradle}}andGradle2.5:{code}taskshowGlobalEnv{println'Testmatch:'+(System.env.TEST_ENV=='T123')System.env.TEST_ENV.each{printlnit}}{code}Igetthisresult:{code}recena@andromeda:~/projects/gradle-helloworld$gradle-bbuild.gradleshowGlobalEnv:showGlobalEnvTestmatch:falseBUILDSUCCESSFULTotaltime:4.227secs{code}Probably,I'mdoingsomethingwrong.Anyidea?h4.MytestAnyway,I'veconfigurethefollowingFreeStyleJob:#Gitrepo:https://github.com/recena/gradle-helloworld#Checkstheoption*Injectenvironmentvariablestothebuildprocess*##In*PropertiesContent*fieldI'vedefined:{{VAR=VAR2}}#Checkstheoption*Injectpasswordstothebuildasenvironmentvariables*##Checkstheoption*Globalpasswords*becauseI'vedefinedalsoaglobalpassword:{{PASSWORDGLOBAL=PASSWORDGLOBAL}}##Note:IhavetoinvestigateifMaskpasswordparametersoptionisworkinghowitexpect .Done(y) #AddsaGradleBuildstep:##Usestheoption*InvokeGradle*andselectsGradle2.5##In*Tasks*fieldI'vedefinethenameofourtask:{{showGlobalEnv}}#AddsaSHELLstepwith:{code}echo$VARecho$PASSWORDLOCALecho$PASSWORDGLOBAL{code}h5.Consoleoutput{code}[EnvInject]-Injectglobalpasswords.Startedbyuseranonymous[EnvInject]-Loadingnodeenvironmentvariables.Buildinginworkspace/home/recena/projects/envinject-plugin/work/jobs/JENKINS-27382/workspacegitrev-parse--is-inside-work-tree#timeout=10FetchingchangesfromtheremoteGitrepositorygitconfigremote.origin.urlhttps://github.com/recena/gradle-helloworld.git#timeout=10Fetchingupstreamchangesfromhttps://github.com/recena/gradle-helloworld.gitgit--version#timeout=10git-ccore.askpass=truefetch--tags--progresshttps://github.com/recena/gradle-helloworld.git+refs/heads/*:refs/remotes/origin/*gitrev-parserefs/remotes/origin/master^{commit}#timeout=10gitrev-parserefs/remotes/origin/origin/master^{commit}#timeout=10CheckingoutRevisionb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5(refs/remotes/origin/master)gitconfigcore.sparsecheckout#timeout=10gitcheckout-fb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5gitrev-listb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5#timeout=10[EnvInject]-ExecutingscriptsandinjectingenvironmentvariablesaftertheSCMstep.[EnvInject]-InjectingasenvironmentvariablesthepropertiescontentVAR=VAR1[EnvInject]-Variablesinjectedsuccessfully.[Gradle]-Launchingbuild.[workspace]$/home/recena/projects/envinject-plugin/work/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.6/bin/gradleshowGlobalEnv:showGlobalEnvVARwasinjectedusingthefieldPropertiesContent:VAR1VAR1PASSWORDLOCALwasinjectedusingtheoptionInjectpasswords:PASSWORDGLOBALwasinjectedusingtheoptionInjectpasswords:BUILDSUCCESSFULTotaltime:2.554secsThisbuildcouldbefaster,pleaseconsiderusingtheGradleDaemon:https://docs.gradle.org/2.6/userguide/gradle_daemon.htmlBuildstep'InvokeGradlescript'changedbuildresulttoSUCCESS[workspace]$/bin/sh-xe/tmp/hudson5969723979230846787.sh+echoVAR1VAR1+echo+echoFinished:SUCCESS{code}h5.EnvironmentVariables(URL:JOB_NAME/BUILD_ID/injectedEnvVars/)*{{VAR=VAR1}}(/)*{{PASSWORDLOCAL=}}(/)*{{PASSWORDGLOBAL=}}(/)h5.EnvironmentVariables(FILESYSTEM:jobs/JOB_NAME/lastSuccessful/injectedEnvVars.txt){code}VAR=VAR1PASSWORDGLOBAL=PASSWORDLOCAL={code}/cc[~schristou] 
 
 
 
 
 
 
 
 
 
 
 
 

[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-21 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto edited a comment on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 Readingthe[changelog|https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin#EnvInjectPlugin-1.91%28Mar8th,2015%29]I'veunderstoodhow*Maskpasswordparameters*shouldwork. Obviously,thereisbugbecausethepasswords(localandglobal)shouldbemarkedonlyin:*EnvironmentVariables(URL:JOB_{{NAME/BUILD_ID/injectedEnvVars/}})*EnvironmentVariables(FILESYSTEM:{{jobs/JOB_NAME/lastSuccessful/injectedEnvVars.txt}}) 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-21 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto edited a comment on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 [~mbtc]I'vetriedtoreproducethebuginthisenvironment:Jenkinsver.1.532.3,GradlePlugin1.24andEnvInjectPlugin1.92(latestrelease).Withthis{{build.gradle}}andGradle2. 6 5 :{code}taskshowGlobalEnv{println'Testmatch:'+(System.env.TEST_ENV=='T123')System.env.TEST_ENV.each{printlnit}}{code}Igetthisresult:{code}recena@andromeda:~/projects/gradle-helloworld$gradle-bbuild.gradleshowGlobalEnv:showGlobalEnvTestmatch:falseBUILDSUCCESSFULTotaltime:4.227secs{code}Probably,I'mdoingsomethingwrong.Anyidea?h4.MytestAnyway,I'veconfigurethefollowingFreeStyleJob:#Gitrepo:https://github.com/recena/gradle-helloworld#Checkstheoption*Injectenvironmentvariablestothebuildprocess*##In*PropertiesContent*fieldI'vedefined:{{VAR=VAR2}}#Checkstheoption*Injectpasswordstothebuildasenvironmentvariables*##Checkstheoption*Globalpasswords*becauseI'vedefinedalsoaglobalpassword:{{PASSWORDGLOBAL=PASSWORDGLOBAL}}##Note:IhavetoinvestigateifMaskpasswordparametersoptionisworkinghowitexpect.Done(y)#AddsaGradleBuildstep:##Usestheoption*InvokeGradle*andselectsGradle2.5##In*Tasks*fieldI'vedefinethenameofourtask:{{showGlobalEnv}}#AddsaSHELLstepwith:{code}echo$VARecho$PASSWORDLOCALecho$PASSWORDGLOBAL{code}h5.Consoleoutput{code}[EnvInject]-Injectglobalpasswords.Startedbyuseranonymous[EnvInject]-Loadingnodeenvironmentvariables.Buildinginworkspace/home/recena/projects/envinject-plugin/work/jobs/JENKINS-27382/workspacegitrev-parse--is-inside-work-tree#timeout=10FetchingchangesfromtheremoteGitrepositorygitconfigremote.origin.urlhttps://github.com/recena/gradle-helloworld.git#timeout=10Fetchingupstreamchangesfromhttps://github.com/recena/gradle-helloworld.gitgit--version#timeout=10git-ccore.askpass=truefetch--tags--progresshttps://github.com/recena/gradle-helloworld.git+refs/heads/*:refs/remotes/origin/*gitrev-parserefs/remotes/origin/master^{commit}#timeout=10gitrev-parserefs/remotes/origin/origin/master^{commit}#timeout=10CheckingoutRevisionb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5(refs/remotes/origin/master)gitconfigcore.sparsecheckout#timeout=10gitcheckout-fb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5gitrev-listb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5#timeout=10[EnvInject]-ExecutingscriptsandinjectingenvironmentvariablesaftertheSCMstep.[EnvInject]-InjectingasenvironmentvariablesthepropertiescontentVAR=VAR1[EnvInject]-Variablesinjectedsuccessfully.[Gradle]-Launchingbuild.[workspace]$/home/recena/projects/envinject-plugin/work/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.6/bin/gradleshowGlobalEnv:showGlobalEnvVARwasinjectedusingthefieldPropertiesContent:VAR1VAR1PASSWORDLOCALwasinjectedusingtheoptionInjectpasswords:PASSWORDGLOBALwasinjectedusingtheoptionInjectpasswords:BUILDSUCCESSFULTotaltime:2.554secsThisbuildcouldbefaster,pleaseconsiderusingtheGradleDaemon:https://docs.gradle.org/2.6/userguide/gradle_daemon.htmlBuildstep'InvokeGradlescript'changedbuildresulttoSUCCESS[workspace]$/bin/sh-xe/tmp/hudson5969723979230846787.sh+echoVAR1VAR1+echo+echoFinished:SUCCESS{code}h5.EnvironmentVariables(URL:JOB_NAME/BUILD_ID/injectedEnvVars/)*{{VAR=VAR1}}(/)*{{PASSWORDLOCAL=}}(/)*{{PASSWORDGLOBAL=}}(/)h5.EnvironmentVariables(FILESYSTEM:jobs/JOB_NAME/lastSuccessful/injectedEnvVars.txt){code}VAR=VAR1PASSWORDGLOBAL=PASSWORDLOCAL={code}/cc[~schristou] 
 
 
 
 
 
 
 
 
 
 
 
 
  

[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-21 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Oleg Nenashev commented on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 
The issue is in these two methods: https://github.com/jenkinsci/envinject-plugin/blob/master/src/main/java/org/jenkinsci/plugins/envinject/EnvInjectPluginAction.java#L46-L63 
Nicolas modified getEnvInjectVarList() in order to prevent the vars exposure to getTarget(). buildEnvVars() also uses this method =  sneak to environment variables in some cases 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-21 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto commented on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 
Oleg Nenashev Thanks for your clue. 
A PR have been sent. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-21 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto commented on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 
Marcus Collins, I'd need feedback to understand where is the bug. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-20 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto started work on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 

Change By:
 
 Manuel Jess Recena Soto 
 
 
 

Status:
 
 Open InProgress 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-20 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto assigned an issue to Manuel Jess Recena Soto 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Jenkins /  JENKINS-27382 
 
 
 
  EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 

Change By:
 
 Manuel Jess Recena Soto 
 
 
 

Assignee:
 
 GregoryBoissinot ManuelJessRecenaSoto 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-20 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto commented on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 
Marcus Collins 
I've tried to reproduce the bug in this environment: Jenkins ver. 1.532.3, Gradle Plugin 1.24 and EnvInject Plugin 1.92 (latest release). 
With this build.gradle and Gradle 2.5: 

 

task showGlobalEnv  {
println 'Test match:' + (System.env.TEST_ENV == 'T123')
System.env.TEST_ENV.each {
println it
}
}
 

 
I get this result: 

 

recena@andromeda:~/projects/gradle-helloworld$ gradle -b build.gradle showGlobalEnv
:showGlobalEnv
Test match:false

BUILD SUCCESSFUL

Total time: 4.227 secs
 

 
Anyway, I've configure the following FreeStyleJob: 
 

Git repo: https://github.com/recena/gradle-helloworld
 

Checks the option Inject environment variables to the build process 
 

In Properties Content field I've defined: VAR=VAR2
 
 
 

Checks the option Inject passwords to the build as environment variables 
 

Checks the option Global passwords because I've defined also a global password: PASSWORDGLOBAL=PASSWORDGLOBAL
 

Note: I have to investigate if Mask password parameters option is working how it expect
 
 
 

Adds a Gradle Build step: 
 

Uses the option Invoke Gradle and selects Gradle 2.5
 

In Tasks field I've define the name of our task: showGlobalEnv
 
 
 

  

[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-20 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto edited a comment on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 [~mbtc]I'vetriedtoreproducethebuginthisenvironment:Jenkinsver.1.532.3,GradlePlugin1.24andEnvInjectPlugin1.92(latestrelease).Withthis{{build.gradle}}andGradle2.5:{code}taskshowGlobalEnv{println'Testmatch:'+(System.env.TEST_ENV=='T123')System.env.TEST_ENV.each{printlnit}}{code}Igetthisresult:{code}recena@andromeda:~/projects/gradle-helloworld$gradle-bbuild.gradleshowGlobalEnv:showGlobalEnvTestmatch:falseBUILDSUCCESSFULTotaltime:4.227secs{code}Anyway,I'veconfigurethefollowingFreeStyleJob:#Gitrepo:https://github.com/recena/gradle-helloworld#Checkstheoption*Injectenvironmentvariablestothebuildprocess*##In*PropertiesContent*fieldI'vedefined:{{VAR=VAR2}}#Checkstheoption*Injectpasswordstothebuildasenvironmentvariables*##Checkstheoption*Globalpasswords*becauseI'vedefinedalsoaglobalpassword:{{PASSWORDGLOBAL=PASSWORDGLOBAL}}##Note:IhavetoinvestigateifMaskpasswordparametersoptionisworkinghowitexpect#AddsaGradleBuildstep:##Usestheoption*InvokeGradle*andselectsGradle2.5##In*Tasks*fieldI'vedefinethenameofourtask:{{showGlobalEnv}}#AddsaSHELLstepwith:{ { code}echo$VARecho$PASSWORDLOCALecho$PASSWORDGLOBAL{code}h4.Consoleoutput{code}[EnvInject]-Injectglobalpasswords.Startedbyuseranonymous[EnvInject]-Loadingnodeenvironmentvariables.Buildinginworkspace/home/recena/projects/envinject-plugin/work/jobs/JENKINS-27382/workspacegitrev-parse--is-inside-work-tree#timeout=10FetchingchangesfromtheremoteGitrepositorygitconfigremote.origin.urlhttps://github.com/recena/gradle-helloworld.git#timeout=10Fetchingupstreamchangesfromhttps://github.com/recena/gradle-helloworld.gitgit--version#timeout=10git-ccore.askpass=truefetch--tags--progresshttps://github.com/recena/gradle-helloworld.git+refs/heads/*:refs/remotes/origin/*gitrev-parserefs/remotes/origin/master^{commit}#timeout=10gitrev-parserefs/remotes/origin/origin/master^{commit}#timeout=10CheckingoutRevisionb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5(refs/remotes/origin/master)gitconfigcore.sparsecheckout#timeout=10gitcheckout-fb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5gitrev-listb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5#timeout=10[EnvInject]-ExecutingscriptsandinjectingenvironmentvariablesaftertheSCMstep.[EnvInject]-InjectingasenvironmentvariablesthepropertiescontentVAR=VAR1[EnvInject]-Variablesinjectedsuccessfully.[Gradle]-Launchingbuild.[workspace]$/home/recena/projects/envinject-plugin/work/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.6/bin/gradleshowGlobalEnv:showGlobalEnvVARwasinjectedusingthefieldPropertiesContent:VAR1VAR1PASSWORDLOCALwasinjectedusingtheoptionInjectpasswords:PASSWORDGLOBALwasinjectedusingtheoptionInjectpasswords:BUILDSUCCESSFULTotaltime:2.554secsThisbuildcouldbefaster,pleaseconsiderusingtheGradleDaemon:https://docs.gradle.org/2.6/userguide/gradle_daemon.htmlBuildstep'InvokeGradlescript'changedbuildresulttoSUCCESS[workspace]$/bin/sh-xe/tmp/hudson5969723979230846787.sh+echoVAR1VAR1+echo+echoFinished:SUCCESS{code}h4.EnvironmentVariables(URL:JOB_NAME/BUILD_ID/injectedEnvVars/)*{{VAR=VAR1}}(/)*{{PASSWORDLOCAL=}(/)*{{PASSWORDGLOBAL=}(/)h4.EnvironmentVariables(FILESYSTEM:jobs/JOB_NAME/lastSuccessfulinjectedEnvVars.txt){code}VAR=VAR1PASSWORDGLOBAL=PASSWORDLOCAL={code}/cc[~schristou] 
 
 
 
 
 
 
 
 
 
 
 
 

  

[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-20 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto edited a comment on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 [~mbtc]I'vetriedtoreproducethebuginthisenvironment:Jenkinsver.1.532.3,GradlePlugin1.24andEnvInjectPlugin1.92(latestrelease).Withthis{{build.gradle}}andGradle2.5:{code}taskshowGlobalEnv{println'Testmatch:'+(System.env.TEST_ENV=='T123')System.env.TEST_ENV.each{printlnit}}{code}Igetthisresult:  {code}recena@andromeda:~/projects/gradle-helloworld$gradle-bbuild.gradleshowGlobalEnv:showGlobalEnvTestmatch:falseBUILDSUCCESSFULTotaltime:4.227secs{code} Probably,I'mdoingsomethingwrong.Anyidea? Anyway,I'veconfigurethefollowingFreeStyleJob:#Gitrepo:https://github.com/recena/gradle-helloworld#Checkstheoption*Injectenvironmentvariablestothebuildprocess*##In*PropertiesContent*fieldI'vedefined:{{VAR=VAR2}}#Checkstheoption*Injectpasswordstothebuildasenvironmentvariables*##Checkstheoption*Globalpasswords*becauseI'vedefinedalsoaglobalpassword:{{PASSWORDGLOBAL=PASSWORDGLOBAL}}##Note:IhavetoinvestigateifMaskpasswordparametersoptionisworkinghowitexpect#AddsaGradleBuildstep:##Usestheoption*InvokeGradle*andselectsGradle2.5##In*Tasks*fieldI'vedefinethenameofourtask:{{showGlobalEnv}}#AddsaSHELLstepwith:{code}echo$VARecho$PASSWORDLOCALecho$PASSWORDGLOBAL{code}h4.Consoleoutput  {code}[EnvInject]-Injectglobalpasswords.Startedbyuseranonymous[EnvInject]-Loadingnodeenvironmentvariables.Buildinginworkspace/home/recena/projects/envinject-plugin/work/jobs/JENKINS-27382/workspacegitrev-parse--is-inside-work-tree#timeout=10FetchingchangesfromtheremoteGitrepositorygitconfigremote.origin.urlhttps://github.com/recena/gradle-helloworld.git#timeout=10Fetchingupstreamchangesfromhttps://github.com/recena/gradle-helloworld.gitgit--version#timeout=10git-ccore.askpass=truefetch--tags--progresshttps://github.com/recena/gradle-helloworld.git+refs/heads/*:refs/remotes/origin/*gitrev-parserefs/remotes/origin/master^{commit}#timeout=10gitrev-parserefs/remotes/origin/origin/master^{commit}#timeout=10CheckingoutRevisionb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5(refs/remotes/origin/master)gitconfigcore.sparsecheckout#timeout=10gitcheckout-fb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5gitrev-listb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5#timeout=10[EnvInject]-ExecutingscriptsandinjectingenvironmentvariablesaftertheSCMstep.[EnvInject]-InjectingasenvironmentvariablesthepropertiescontentVAR=VAR1[EnvInject]-Variablesinjectedsuccessfully.[Gradle]-Launchingbuild.[workspace]$/home/recena/projects/envinject-plugin/work/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.6/bin/gradleshowGlobalEnv:showGlobalEnvVARwasinjectedusingthefieldPropertiesContent:VAR1VAR1PASSWORDLOCALwasinjectedusingtheoptionInjectpasswords:PASSWORDGLOBALwasinjectedusingtheoptionInjectpasswords:BUILDSUCCESSFULTotaltime:2.554secsThisbuildcouldbefaster,pleaseconsiderusingtheGradleDaemon:https://docs.gradle.org/2.6/userguide/gradle_daemon.htmlBuildstep'InvokeGradlescript'changedbuildresulttoSUCCESS[workspace]$/bin/sh-xe/tmp/hudson5969723979230846787.sh+echoVAR1VAR1+echo+echoFinished:SUCCESS{code}h4.EnvironmentVariables(URL:JOB_NAME/BUILD_ID/injectedEnvVars/)*{{VAR=VAR1}}(/)*{{PASSWORDLOCAL=}}(/)*{{PASSWORDGLOBAL=}}(/)h4.EnvironmentVariables(FILESYSTEM:jobs/JOB_NAME/lastSuccessful/injectedEnvVars.txt){code}VAR=VAR1PASSWORDGLOBAL=PASSWORDLOCAL={code}/cc[~schristou] 
 
 
 
 
 
 
 
 
 
 
 
 
 

[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-20 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto edited a comment on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 [~mbtc]I'vetriedtoreproducethebuginthisenvironment:Jenkinsver.1.532.3,GradlePlugin1.24andEnvInjectPlugin1.92(latestrelease).Withthis{{build.gradle}}andGradle2.5:{code}taskshowGlobalEnv{println'Testmatch:'+(System.env.TEST_ENV=='T123')System.env.TEST_ENV.each{printlnit}}{code}Igetthisresult:{code}recena@andromeda:~/projects/gradle-helloworld$gradle-bbuild.gradleshowGlobalEnv:showGlobalEnvTestmatch:falseBUILDSUCCESSFULTotaltime:4.227secs{code}Anyway,I'veconfigurethefollowingFreeStyleJob:#Gitrepo:https://github.com/recena/gradle-helloworld#Checkstheoption*Injectenvironmentvariablestothebuildprocess*##In*PropertiesContent*fieldI'vedefined:{{VAR=VAR2}}#Checkstheoption*Injectpasswordstothebuildasenvironmentvariables*##Checkstheoption*Globalpasswords*becauseI'vedefinedalsoaglobalpassword:{{PASSWORDGLOBAL=PASSWORDGLOBAL}}##Note:IhavetoinvestigateifMaskpasswordparametersoptionisworkinghowitexpect#AddsaGradleBuildstep:##Usestheoption*InvokeGradle*andselectsGradle2.5##In*Tasks*fieldI'vedefinethenameofourtask:{{showGlobalEnv}}#AddsaSHELLstepwith:{code}echo$VARecho$PASSWORDLOCALecho$PASSWORDGLOBAL{code}h4.Consoleoutput{code}[EnvInject]-Injectglobalpasswords.Startedbyuseranonymous[EnvInject]-Loadingnodeenvironmentvariables.Buildinginworkspace/home/recena/projects/envinject-plugin/work/jobs/JENKINS-27382/workspacegitrev-parse--is-inside-work-tree#timeout=10FetchingchangesfromtheremoteGitrepositorygitconfigremote.origin.urlhttps://github.com/recena/gradle-helloworld.git#timeout=10Fetchingupstreamchangesfromhttps://github.com/recena/gradle-helloworld.gitgit--version#timeout=10git-ccore.askpass=truefetch--tags--progresshttps://github.com/recena/gradle-helloworld.git+refs/heads/*:refs/remotes/origin/*gitrev-parserefs/remotes/origin/master^{commit}#timeout=10gitrev-parserefs/remotes/origin/origin/master^{commit}#timeout=10CheckingoutRevisionb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5(refs/remotes/origin/master)gitconfigcore.sparsecheckout#timeout=10gitcheckout-fb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5gitrev-listb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5#timeout=10[EnvInject]-ExecutingscriptsandinjectingenvironmentvariablesaftertheSCMstep.[EnvInject]-InjectingasenvironmentvariablesthepropertiescontentVAR=VAR1[EnvInject]-Variablesinjectedsuccessfully.[Gradle]-Launchingbuild.[workspace]$/home/recena/projects/envinject-plugin/work/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.6/bin/gradleshowGlobalEnv:showGlobalEnvVARwasinjectedusingthefieldPropertiesContent:VAR1VAR1PASSWORDLOCALwasinjectedusingtheoptionInjectpasswords:PASSWORDGLOBALwasinjectedusingtheoptionInjectpasswords:BUILDSUCCESSFULTotaltime:2.554secsThisbuildcouldbefaster,pleaseconsiderusingtheGradleDaemon:https://docs.gradle.org/2.6/userguide/gradle_daemon.htmlBuildstep'InvokeGradlescript'changedbuildresulttoSUCCESS[workspace]$/bin/sh-xe/tmp/hudson5969723979230846787.sh+echoVAR1VAR1+echo+echoFinished:SUCCESS{code}h4.EnvironmentVariables(URL:JOB_NAME/BUILD_ID/injectedEnvVars/)*{{VAR=VAR1}}(/)*{{PASSWORDLOCAL=}}(/)*{{PASSWORDGLOBAL=}}(/)h4.EnvironmentVariables(FILESYSTEM:jobs/JOB_NAME/ lastSuccessfulinjectedEnvVars lastSuccessful/injectedEnvVars .txt){code}VAR=VAR1PASSWORDGLOBAL=PASSWORDLOCAL={code}/cc[~schristou] 
 
 
 
 
 
 
 
 
 
 
 
 

  

[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-20 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto edited a comment on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 [~mbtc]I'vetriedtoreproducethebuginthisenvironment:Jenkinsver.1.532.3,GradlePlugin1.24andEnvInjectPlugin1.92(latestrelease).Withthis{{build.gradle}}andGradle2.5:{code}taskshowGlobalEnv{println'Testmatch:'+(System.env.TEST_ENV=='T123')System.env.TEST_ENV.each{printlnit}}{code}Igetthisresult:{code}recena@andromeda:~/projects/gradle-helloworld$gradle-bbuild.gradleshowGlobalEnv:showGlobalEnvTestmatch:falseBUILDSUCCESSFULTotaltime:4.227secs{code}Anyway,I'veconfigurethefollowingFreeStyleJob:#Gitrepo:https://github.com/recena/gradle-helloworld#Checkstheoption*Injectenvironmentvariablestothebuildprocess*##In*PropertiesContent*fieldI'vedefined:{{VAR=VAR2}}#Checkstheoption*Injectpasswordstothebuildasenvironmentvariables*##Checkstheoption*Globalpasswords*becauseI'vedefinedalsoaglobalpassword:{{PASSWORDGLOBAL=PASSWORDGLOBAL}}##Note:IhavetoinvestigateifMaskpasswordparametersoptionisworkinghowitexpect#AddsaGradleBuildstep:##Usestheoption*InvokeGradle*andselectsGradle2.5##In*Tasks*fieldI'vedefinethenameofourtask:{{showGlobalEnv}}#AddsaSHELLstepwith:{code}echo$VARecho$PASSWORDLOCALecho$PASSWORDGLOBAL{code}h4.Consoleoutput{code}[EnvInject]-Injectglobalpasswords.Startedbyuseranonymous[EnvInject]-Loadingnodeenvironmentvariables.Buildinginworkspace/home/recena/projects/envinject-plugin/work/jobs/JENKINS-27382/workspacegitrev-parse--is-inside-work-tree#timeout=10FetchingchangesfromtheremoteGitrepositorygitconfigremote.origin.urlhttps://github.com/recena/gradle-helloworld.git#timeout=10Fetchingupstreamchangesfromhttps://github.com/recena/gradle-helloworld.gitgit--version#timeout=10git-ccore.askpass=truefetch--tags--progresshttps://github.com/recena/gradle-helloworld.git+refs/heads/*:refs/remotes/origin/*gitrev-parserefs/remotes/origin/master^{commit}#timeout=10gitrev-parserefs/remotes/origin/origin/master^{commit}#timeout=10CheckingoutRevisionb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5(refs/remotes/origin/master)gitconfigcore.sparsecheckout#timeout=10gitcheckout-fb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5gitrev-listb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5#timeout=10[EnvInject]-ExecutingscriptsandinjectingenvironmentvariablesaftertheSCMstep.[EnvInject]-InjectingasenvironmentvariablesthepropertiescontentVAR=VAR1[EnvInject]-Variablesinjectedsuccessfully.[Gradle]-Launchingbuild.[workspace]$/home/recena/projects/envinject-plugin/work/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.6/bin/gradleshowGlobalEnv:showGlobalEnvVARwasinjectedusingthefieldPropertiesContent:VAR1VAR1PASSWORDLOCALwasinjectedusingtheoptionInjectpasswords:PASSWORDGLOBALwasinjectedusingtheoptionInjectpasswords:BUILDSUCCESSFULTotaltime:2.554secsThisbuildcouldbefaster,pleaseconsiderusingtheGradleDaemon:https://docs.gradle.org/2.6/userguide/gradle_daemon.htmlBuildstep'InvokeGradlescript'changedbuildresulttoSUCCESS[workspace]$/bin/sh-xe/tmp/hudson5969723979230846787.sh+echoVAR1VAR1+echo+echoFinished:SUCCESS{code}h4.EnvironmentVariables(URL:JOB_NAME/BUILD_ID/injectedEnvVars/)*{{VAR=VAR1}}(/)*{{PASSWORDLOCAL=} } (/)*{{PASSWORDGLOBAL=} } (/)h4.EnvironmentVariables(FILESYSTEM:jobs/JOB_NAME/lastSuccessfulinjectedEnvVars.txt){code}VAR=VAR1PASSWORDGLOBAL=PASSWORDLOCAL={code}/cc[~schristou] 
 
 
 
 
 
 
 
 
 
 
 
 

   

[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-20 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto edited a comment on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 [~mbtc]I'vetriedtoreproducethebuginthisenvironment:Jenkinsver.1.532.3,GradlePlugin1.24andEnvInjectPlugin1.92(latestrelease).Withthis{{build.gradle}}andGradle2.5:{code}taskshowGlobalEnv{println'Testmatch:'+(System.env.TEST_ENV=='T123')System.env.TEST_ENV.each{printlnit}}{code}Igetthisresult:{code}recena@andromeda:~/projects/gradle-helloworld$gradle-bbuild.gradleshowGlobalEnv:showGlobalEnvTestmatch:falseBUILDSUCCESSFULTotaltime:4.227secs{code}Probably,I'mdoingsomethingwrong.Anyidea? h5.Mytest Anyway,I'veconfigurethefollowingFreeStyleJob:#Gitrepo:https://github.com/recena/gradle-helloworld#Checkstheoption*Injectenvironmentvariablestothebuildprocess*##In*PropertiesContent*fieldI'vedefined:{{VAR=VAR2}}#Checkstheoption*Injectpasswordstothebuildasenvironmentvariables*##Checkstheoption*Globalpasswords*becauseI'vedefinedalsoaglobalpassword:{{PASSWORDGLOBAL=PASSWORDGLOBAL}}##Note:IhavetoinvestigateifMaskpasswordparametersoptionisworkinghowitexpect#AddsaGradleBuildstep:##Usestheoption*InvokeGradle*andselectsGradle2.5##In*Tasks*fieldI'vedefinethenameofourtask:{{showGlobalEnv}}#AddsaSHELLstepwith:{code}echo$VARecho$PASSWORDLOCALecho$PASSWORDGLOBAL{code}h4.Consoleoutput{code}[EnvInject]-Injectglobalpasswords.Startedbyuseranonymous[EnvInject]-Loadingnodeenvironmentvariables.Buildinginworkspace/home/recena/projects/envinject-plugin/work/jobs/JENKINS-27382/workspacegitrev-parse--is-inside-work-tree#timeout=10FetchingchangesfromtheremoteGitrepositorygitconfigremote.origin.urlhttps://github.com/recena/gradle-helloworld.git#timeout=10Fetchingupstreamchangesfromhttps://github.com/recena/gradle-helloworld.gitgit--version#timeout=10git-ccore.askpass=truefetch--tags--progresshttps://github.com/recena/gradle-helloworld.git+refs/heads/*:refs/remotes/origin/*gitrev-parserefs/remotes/origin/master^{commit}#timeout=10gitrev-parserefs/remotes/origin/origin/master^{commit}#timeout=10CheckingoutRevisionb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5(refs/remotes/origin/master)gitconfigcore.sparsecheckout#timeout=10gitcheckout-fb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5gitrev-listb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5#timeout=10[EnvInject]-ExecutingscriptsandinjectingenvironmentvariablesaftertheSCMstep.[EnvInject]-InjectingasenvironmentvariablesthepropertiescontentVAR=VAR1[EnvInject]-Variablesinjectedsuccessfully.[Gradle]-Launchingbuild.[workspace]$/home/recena/projects/envinject-plugin/work/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.6/bin/gradleshowGlobalEnv:showGlobalEnvVARwasinjectedusingthefieldPropertiesContent:VAR1VAR1PASSWORDLOCALwasinjectedusingtheoptionInjectpasswords:PASSWORDGLOBALwasinjectedusingtheoptionInjectpasswords:BUILDSUCCESSFULTotaltime:2.554secsThisbuildcouldbefaster,pleaseconsiderusingtheGradleDaemon:https://docs.gradle.org/2.6/userguide/gradle_daemon.htmlBuildstep'InvokeGradlescript'changedbuildresulttoSUCCESS[workspace]$/bin/sh-xe/tmp/hudson5969723979230846787.sh+echoVAR1VAR1+echo+echoFinished:SUCCESS{code}h4.EnvironmentVariables(URL:JOB_NAME/BUILD_ID/injectedEnvVars/)*{{VAR=VAR1}}(/)*{{PASSWORDLOCAL=}}(/)*{{PASSWORDGLOBAL=}}(/)h4.EnvironmentVariables(FILESYSTEM:jobs/JOB_NAME/lastSuccessful/injectedEnvVars.txt){code}VAR=VAR1PASSWORDGLOBAL=PASSWORDLOCAL={code}/cc[~schristou] 
 
 
 
 
 
 
 
 
 
 
 
 

[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-20 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto edited a comment on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 [~mbtc]I'vetriedtoreproducethebuginthisenvironment:Jenkinsver.1.532.3,GradlePlugin1.24andEnvInjectPlugin1.92(latestrelease).Withthis{{build.gradle}}andGradle2.5:{code}taskshowGlobalEnv{println'Testmatch:'+(System.env.TEST_ENV=='T123')System.env.TEST_ENV.each{printlnit}}{code}Igetthisresult:{code}recena@andromeda:~/projects/gradle-helloworld$gradle-bbuild.gradleshowGlobalEnv:showGlobalEnvTestmatch:falseBUILDSUCCESSFULTotaltime:4.227secs{code}Probably,I'mdoingsomethingwrong.Anyidea? h5 h4 .MytestAnyway,I'veconfigurethefollowingFreeStyleJob:#Gitrepo:https://github.com/recena/gradle-helloworld#Checkstheoption*Injectenvironmentvariablestothebuildprocess*##In*PropertiesContent*fieldI'vedefined:{{VAR=VAR2}}#Checkstheoption*Injectpasswordstothebuildasenvironmentvariables*##Checkstheoption*Globalpasswords*becauseI'vedefinedalsoaglobalpassword:{{PASSWORDGLOBAL=PASSWORDGLOBAL}}##Note:IhavetoinvestigateifMaskpasswordparametersoptionisworkinghowitexpect#AddsaGradleBuildstep:##Usestheoption*InvokeGradle*andselectsGradle2.5##In*Tasks*fieldI'vedefinethenameofourtask:{{showGlobalEnv}}#AddsaSHELLstepwith:{code}echo$VARecho$PASSWORDLOCALecho$PASSWORDGLOBAL{code} h4 h5 .Consoleoutput{code}[EnvInject]-Injectglobalpasswords.Startedbyuseranonymous[EnvInject]-Loadingnodeenvironmentvariables.Buildinginworkspace/home/recena/projects/envinject-plugin/work/jobs/JENKINS-27382/workspacegitrev-parse--is-inside-work-tree#timeout=10FetchingchangesfromtheremoteGitrepositorygitconfigremote.origin.urlhttps://github.com/recena/gradle-helloworld.git#timeout=10Fetchingupstreamchangesfromhttps://github.com/recena/gradle-helloworld.gitgit--version#timeout=10git-ccore.askpass=truefetch--tags--progresshttps://github.com/recena/gradle-helloworld.git+refs/heads/*:refs/remotes/origin/*gitrev-parserefs/remotes/origin/master^{commit}#timeout=10gitrev-parserefs/remotes/origin/origin/master^{commit}#timeout=10CheckingoutRevisionb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5(refs/remotes/origin/master)gitconfigcore.sparsecheckout#timeout=10gitcheckout-fb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5gitrev-listb6329ad258d2900df073bdd6bd3ef46dd9b7fcc5#timeout=10[EnvInject]-ExecutingscriptsandinjectingenvironmentvariablesaftertheSCMstep.[EnvInject]-InjectingasenvironmentvariablesthepropertiescontentVAR=VAR1[EnvInject]-Variablesinjectedsuccessfully.[Gradle]-Launchingbuild.[workspace]$/home/recena/projects/envinject-plugin/work/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.6/bin/gradleshowGlobalEnv:showGlobalEnvVARwasinjectedusingthefieldPropertiesContent:VAR1VAR1PASSWORDLOCALwasinjectedusingtheoptionInjectpasswords:PASSWORDGLOBALwasinjectedusingtheoptionInjectpasswords:BUILDSUCCESSFULTotaltime:2.554secsThisbuildcouldbefaster,pleaseconsiderusingtheGradleDaemon:https://docs.gradle.org/2.6/userguide/gradle_daemon.htmlBuildstep'InvokeGradlescript'changedbuildresulttoSUCCESS[workspace]$/bin/sh-xe/tmp/hudson5969723979230846787.sh+echoVAR1VAR1+echo+echoFinished:SUCCESS{code} h4 h5 .EnvironmentVariables(URL:JOB_NAME/BUILD_ID/injectedEnvVars/)*{{VAR=VAR1}}(/)*{{PASSWORDLOCAL=}}(/)*{{PASSWORDGLOBAL=}}(/) h4 h5 .EnvironmentVariables(FILESYSTEM:jobs/JOB_NAME/lastSuccessful/injectedEnvVars.txt){code}VAR=VAR1PASSWORDGLOBAL=PASSWORDLOCAL={code}/cc[~schristou] 
 
 
 
 
 
 
 
 
 
 
 
 
  

[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-20 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto commented on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 
Reading the changelog I've understood how Mask password parameters should work. 
Obviously, there is bug because the passwords (local and global) should be marked only in: 
 

Environment Variables (URL: JOB_NAME/BUILD_ID/injectedEnvVars/)
 

Environment Variables (FILESYSTEM: jobs/JOB_NAME/lastSuccessful/injectedEnvVars.txt
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-20 Thread rec...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Manuel Jess Recena Soto edited a comment on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 Readingthe[changelog|https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin#EnvInjectPlugin-1.91%28Mar8th,2015%29]I'veunderstoodhow*Maskpasswordparameters*shouldwork.Obviously,thereisbugbecausethepasswords(localandglobal)shouldbemarkedonlyin:*EnvironmentVariables(URL: JOB_NAME JOB_{{NAME /BUILD_ID/injectedEnvVars/ }} )*EnvironmentVariables(FILESYSTEM: {{ jobs/JOB_NAME/lastSuccessful/injectedEnvVars.txt }}) 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-19 Thread schristo...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Steven Christou commented on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 
I believe this is a regression from commit d50c5. I did a git checkout for each commit between 1.90, and 1.91, and found this commit to inject the * characters. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-08-07 Thread cmil...@appnexus.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Christopher Miller commented on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 
We just upgraded from 1.90 to 1.94 and the problem cropped up. Going to rollback to 1.90. This makes the sensitive variable functionality useless outside of the Execute Shell step. The password is passed as  to all other plugins that make use of the EnvVars object. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-07-18 Thread aleksmai...@mail.ru (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Aleksandr Borovkov updated an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Jenkins /  JENKINS-27382 
 
 
 
  EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 

Change By:
 
 Aleksandr Borovkov 
 
 
 

Priority:
 
 Major Critical 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-06-10 Thread christian.haeuss...@huk-coburg.de (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Christian Hussler commented on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 
+1 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-06-03 Thread aleksmai...@mail.ru (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Aleksandr Borovkov commented on  JENKINS-27382 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: EnvInject plugin passes astrisk to Gradle plugin  
 
 
 
 
 
 
 
 
 
 
Problems still exists in 1.91.3 The password arrives as asterisks use msbuild plugin. Reverted back to 1.90 to solve problem 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-04-20 Thread kmayf...@us.ibm.com (JIRA)














































Kevin Mayfield
 commented on  JENKINS-27382


EnvInject plugin passes astrisk to Gradle plugin















Problem still exists in 1.91.2



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-04-08 Thread kmayf...@us.ibm.com (JIRA)














































Kevin Mayfield
 commented on  JENKINS-27382


EnvInject plugin passes astrisk to Gradle plugin















I experienced the same when invoking Gradle with the Gradle plugin, and options of -Pmvn_password=${MVN_PASSWORD}.
Reverted back to 1.90 to solve problem.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-03-31 Thread f.nawr...@bigpoint.net (JIRA)














































Felix Nawroth
 commented on  JENKINS-27382


EnvInject plugin passes astrisk to Gradle plugin















The same happens with envinject 1.91.1 and maven 2.8/2.9, Jenkins 1.596.2. No difference whether the password is defined locally or globally.

Passing the passwords as JVM parameters works (-Dsecret=${PASSWD_VAR}, while accessing the environment variable in Maven does not and will yield asterisks instead.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [envinject-plugin] (JENKINS-27382) EnvInject plugin passes astrisk to Gradle plugin

2015-03-12 Thread mbtcoll...@hotmail.co.uk (JIRA)














































Marcus Collins
 created  JENKINS-27382


EnvInject plugin passes astrisk to Gradle plugin















Issue Type:


Bug



Assignee:


Gregory Boissinot



Components:


envinject-plugin, gradle-plugin



Created:


12/Mar/15 10:19 AM



Description:


I created a local and global password.
In a shell step the password can be used successfully.
In the next build step of my build I have the Gradle plugin, the password arrives as asterisks.

As a work-around I have switched to use the MaskPassword plugin.

Test Script build.gradle:

task showGlobalEnv  {
  println '\''Test match:'\'' + (System.env.TEST_ENV == 'T123')
  System.env.TEST_ENV.each{ println it }
}


Output from version 1.90 (successful):
Test match:true
T
1
2
3

Output from version 1.91 (failure):
Test match:false
*
*
*
*
*
*
*
*




Environment:


EnvInject version 1.91 and version 1.91.1




Project:


Jenkins



Priority:


Major



Reporter:


Marcus Collins

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.