Resolving Environment Variable ${WORKSPACE}

2016-01-17 Thread nandish reddy
Hi,

I have a custom SCM plugin where the checkout method is overridden and the 
variable ${WORKSPACE} can be resolved using the build object

ex :  build.getEnvironment(buildListener).expand("${WORKSPACE}");

but i want the variable to be resolved during polling, in the 
method compareRemoteRevisionWith, since the build object is not injected 
into this method, i cant resolve as done above, using the project object i 
can get a previous build object and resolve as shown below. BUT the problem 
is, the following solution does not work when there are no previous build 
available. 



public PollingResult compareRemoteRevisionWith(Job project,
Launcher launcher, FilePath workspace, TaskListener listener,
SCMRevisionState baseline) {


  
 project.getLastBuild().getEnvironment(listener).expand("${WORKSPACE}");


}

Any ideas/solutions are welcome...


Thanks & Regards,
Nandish

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9e63ec76-3c97-4767-bf27-5756e469a8b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CodeDeploy plugin using proxy authentication

2016-01-17 Thread donovan . bailey2015
Bump.

Surely others are using the CodeDeploy plugin behind a corporate proxy 
server? How can we contact the developer? The email address on the plugin 
page doesn't work.


On Thursday, 24 December 2015 10:31:35 UTC, donovan.b...@gmail.com wrote:
>
> Hi, the CodeDeploy plugin allows you to specify a proxy server and port 
> but not username and password. How do we make it work with proxy 
> authentication?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f97ac358-ee3d-4fea-9645-42a553e6488a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins_GUI issue

2016-01-17 Thread R. Tyler Croy
(replies inline)

On Sat, 16 Jan 2016, kumar.gogine...@gmail.com wrote:

> Can someone help me in resolving the issue in Jenkins


I don't think these screenshots give enough context to understand what is
happening here.

Knowing what plugins are installed or what the user was doing when these errors
were displayed would be useful to help figure out what the problem here is.


- R. Tyler Croy

--
 Code: 
  Chatter: 

  % gpg --keyserver keys.gnupg.net --recv-key 3F51E16F
--

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20160117180618.GD2753%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: Digital signature


What does "Use Gradle Wrapper" do in Jenkins Gradle plugin?

2016-01-17 Thread David Karr
If I have a Gradle build that uses the Gradle Wrapper, I'm assuming that if 
I have Jenkins using the Jenkins Gradle plugin and the "Use Gradle Wrapper" 
checkbox is set for the job, then Jenkins will just execute the Gradle 
Wrapper script stored in the project. Is this correct?

What exactly are the advantages of doing this, as opposed to just having a 
dumb Jenkins job execute "./gradlew"?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d5601b89-d87f-49a1-9038-56d0134783e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.