Re: curl upload with filename in variable

2017-08-10 Thread Curtis Kline
Richard, that was the problem. There was an extra line feed stuffed into
the variable by accident.

Thanks!
Curtis


On Thu, Aug 10, 2017 at 5:16 AM, Richard Bywater <rich...@byh2o.com> wrote:

> Taking a look at the error, it appears like you have a line feed or
> carriage return at the end of the env.filename variable (note the quote is
> on the next line and not next to apk like I'd expect).
>
> Richard.
>
> On Thu, 10 Aug 2017 at 09:40 Curtis Kline <curtiskl...@gmail.com> wrote:
>
>> The file exists in the current working directory. This is a three-stage
>> project with the agent declared at the global level. It's not running in a
>> Docker container, simply on a Linux node. As a test, I included a step
>> right before the one I mentioned:
>>
>> ls -l ${env.filename}
>>
>> The results seem conclusive:
>>
>> [Pipeline] sh[JenkinsAndroidTest] Running shell script
>> + ls -l Project-debug-v2.1.0-b999.apk
>> -rwxrwxrwx 1 jenkins jenkins 33014841 Aug  9 21:01 
>> Project-debug-v2.1.0-b999.apk
>>
>>
>>
>>
>> On Wed, Aug 9, 2017 at 4:26 PM, Slide <slide.o@gmail.com> wrote:
>>
>>> Does the file exist in what would be considered the current working
>>> directory? Perhaps an ls before the curl to verify?
>>>
>>> On Wed, Aug 9, 2017 at 2:13 PM Curtis Kline <curtiskl...@gmail.com>
>>> wrote:
>>>
>>>> In my declarative pipeline Jenkinsfile, I have the following shell
>>>> script line:
>>>>
>>>> sh """
>>>> curl -F "status=2" -F "notify=1" -F "notes=${params.ReleaseNotes}" -F
>>>> "ipa=@${env.filename}" -H "X-HockeyAppToken: 1234"
>>>> https://rink.hockeyapp.net/api/2/apps/upload
>>>> """
>>>>
>>>> This does not work, because curl is apparently unable to open the file.
>>>> The file clearly exists, and the env.filename variable contains the correct
>>>> filename (you can see this in the console log below, as the variable has
>>>> been expanded to a file name).
>>>>
>>>> A snippet of my console log is below. I’ve been working on this for a
>>>> number of hours, and I could use any help or advice you might have.
>>>>
>>>> [Pipeline] sh[JenkinsAndroidTest] Running shell script
>>>> + curl -F status=2 -F notify=1 -F notes= -F ipa=@Project-debug-v2.1.0-
>>>> b999.apk
>>>> -H X-HockeyAppToken: 1234 https://rink.hockeyapp.net/api/2/apps/upload
>>>>   % Total% Received % Xferd  Average Speed   TimeTime Time
>>>> Current
>>>>  Dload  Upload   Total   Spent
>>>> Left  Speed
>>>>
>>>>   0 00 00 0  0  0 --:--:-- --:--:--
>>>> --:--:-- 0
>>>>   0 00 00 0  0  0 --:--:-- --:--:--
>>>> --:--:-- 0
>>>> curl: (26) couldn't open file “Project-debug-v2.1.0-b999.apk
>>>> "
>>>> [Pipeline] }
>>>>
>>>> --
>>>> 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/CAGkg-enyw40%3DHNoD85ai%2BFemMjafkJwH9jsswGhJX-
>>>> KmAr8Qig%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAGkg-enyw40%3DHNoD85ai%2BFemMjafkJwH9jsswGhJX-KmAr8Qig%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> 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/CAPiUgVfa%2BX14jd_4LvX1CYS_
>>> vuWRSYmvvHSh3dHjM9_ApMo5-g%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfa%2BX14jd_4LvX1CYS_vuWRSYmvvHSh3dHjM9_ApMo5-g%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>> For more op

Re: curl upload with filename in variable

2017-08-09 Thread Curtis Kline
The file exists in the current working directory. This is a three-stage
project with the agent declared at the global level. It's not running in a
Docker container, simply on a Linux node. As a test, I included a step
right before the one I mentioned:

ls -l ${env.filename}

The results seem conclusive:

[Pipeline] sh[JenkinsAndroidTest] Running shell script
+ ls -l Project-debug-v2.1.0-b999.apk
-rwxrwxrwx 1 jenkins jenkins 33014841 Aug  9 21:01 Project-debug-v2.1.0-b999.apk




On Wed, Aug 9, 2017 at 4:26 PM, Slide <slide.o@gmail.com> wrote:

> Does the file exist in what would be considered the current working
> directory? Perhaps an ls before the curl to verify?
>
> On Wed, Aug 9, 2017 at 2:13 PM Curtis Kline <curtiskl...@gmail.com> wrote:
>
>> In my declarative pipeline Jenkinsfile, I have the following shell script
>> line:
>>
>> sh """
>> curl -F "status=2" -F "notify=1" -F "notes=${params.ReleaseNotes}" -F
>> "ipa=@${env.filename}" -H "X-HockeyAppToken: 1234"
>> https://rink.hockeyapp.net/api/2/apps/upload
>> """
>>
>> This does not work, because curl is apparently unable to open the file.
>> The file clearly exists, and the env.filename variable contains the correct
>> filename (you can see this in the console log below, as the variable has
>> been expanded to a file name).
>>
>> A snippet of my console log is below. I’ve been working on this for a
>> number of hours, and I could use any help or advice you might have.
>>
>> [Pipeline] sh[JenkinsAndroidTest] Running shell script
>> + curl -F status=2 -F notify=1 -F notes= -F ipa=@Project-debug-v2.1.0-
>> b999.apk
>> -H X-HockeyAppToken: 1234 https://rink.hockeyapp.net/api/2/apps/upload
>>   % Total% Received % Xferd  Average Speed   TimeTime Time
>> Current
>>  Dload  Upload   Total   SpentLeft
>> Speed
>>
>>   0 00 00 0  0  0 --:--:-- --:--:--
>> --:--:-- 0
>>   0 00 00 0  0  0 --:--:-- --:--:--
>> --:--:-- 0
>> curl: (26) couldn't open file “Project-debug-v2.1.0-b999.apk
>> "
>> [Pipeline] }
>>
>> --
>> 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/CAGkg-enyw40%3DHNoD85ai%2BFemMjafkJwH9jsswGhJX-
>> KmAr8Qig%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAGkg-enyw40%3DHNoD85ai%2BFemMjafkJwH9jsswGhJX-KmAr8Qig%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CAPiUgVfa%2BX14jd_4LvX1CYS_
> vuWRSYmvvHSh3dHjM9_ApMo5-g%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfa%2BX14jd_4LvX1CYS_vuWRSYmvvHSh3dHjM9_ApMo5-g%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAGkg-enQf5Wd00PPtkNnatYKNcmFjPDxHAoj94JakZe18U88Yg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


curl upload with filename in variable

2017-08-09 Thread Curtis Kline
In my declarative pipeline Jenkinsfile, I have the following shell script
line:

sh """
curl -F "status=2" -F "notify=1" -F "notes=${params.ReleaseNotes}" -F
"ipa=@${env.filename}" -H "X-HockeyAppToken: 1234"
https://rink.hockeyapp.net/api/2/apps/upload
"""

This does not work, because curl is apparently unable to open the file. The
file clearly exists, and the env.filename variable contains the correct
filename (you can see this in the console log below, as the variable has
been expanded to a file name).

A snippet of my console log is below. I’ve been working on this for a
number of hours, and I could use any help or advice you might have.

[Pipeline] sh[JenkinsAndroidTest] Running shell script
+ curl -F status=2 -F notify=1 -F notes= -F
ipa=@Project-debug-v2.1.0-b999.apk
-H X-HockeyAppToken: 1234 https://rink.hockeyapp.net/api/2/apps/upload
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed

  0 00 00 0  0  0 --:--:-- --:--:--
--:--:-- 0
  0 00 00 0  0  0 --:--:-- --:--:--
--:--:-- 0
curl: (26) couldn't open file “Project-debug-v2.1.0-b999.apk
"
[Pipeline] }

-- 
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/CAGkg-enyw40%3DHNoD85ai%2BFemMjafkJwH9jsswGhJX-KmAr8Qig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Broken SAML

2017-08-07 Thread Curtis Kline
I updated plugins today and got locked out of Jenkins. SAML authentication
is completely broken. I am on Jenkins 2.73 with all the latest plugin
versions. A stack trace is below.

I do not have a file called saml-idp.metadata.xml and I don't think I've
ever had that file. My idp metadata is in config.xml.

Any thoughts on this? I know I can edit config.xml, turn off security, and
attempt to re-configure SAML. But it would be nice to know how this
happened.

Thanks in advance.

Curtis

java.io.FileNotFoundException: File
'/var/lib/jenkins/saml-idp.metadata.xml' does not exist
at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
at 
org.jenkinsci.plugins.saml.SamlFileResource.getInputStream(SamlFileResource.java:71)
at 
org.pac4j.saml.metadata.SAML2IdentityProviderMetadataResolver.resolve(SAML2IdentityProviderMetadataResolver.java:80)
Caused: org.pac4j.core.exception.TechnicalException: Error loading idp
Metadata. The path must be a valid https url, begin with 'resource:',
'classpath:', 'http:', 'https:' or it must be a physical readable
non-empty local file at the path specified.
at 
org.pac4j.saml.metadata.SAML2IdentityProviderMetadataResolver.resolve(SAML2IdentityProviderMetadataResolver.java:90)
at 
org.pac4j.saml.client.SAML2Client.initIdentityProviderMetadataResolver(SAML2Client.java:170)
at org.pac4j.saml.client.SAML2Client.internalInit(SAML2Client.java:115)
at 
org.pac4j.core.util.InitializableWebObject.init(InitializableWebObject.java:24)
at 
org.jenkinsci.plugins.saml.OpenSAMLWrapper.createSAML2Client(OpenSAMLWrapper.java:147)
at 
org.jenkinsci.plugins.saml.SamlRedirectActionWrapper.process(SamlRedirectActionWrapper.java:45)
at 
org.jenkinsci.plugins.saml.SamlRedirectActionWrapper.process(SamlRedirectActionWrapper.java:30)
at 
org.jenkinsci.plugins.saml.OpenSAMLWrapper.get(OpenSAMLWrapper.java:65)
at 
org.jenkinsci.plugins.saml.SamlSecurityRealm.doCommenceLogin(SamlSecurityRealm.java:221)
at 
java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
Caused: javax.servlet.ServletException
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:765)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
at org.kohsuke.stapler.MetaClass$3.doDispatch(MetaClass.java:209)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
at 
org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:225)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at 
io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at 
io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:50)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at 
com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:47)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at 
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:237)
at 
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:209)
at 
net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:88)
at 
org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:113)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at 

Proxy server between Jenkins and the Internet

2017-07-11 Thread Curtis Kline
Hello all,

I am setting up a new Jenkins server and some build nodes to replace an old
one. The cloud instances running Jenkins jobs are behind a Squid proxy and
cannot access the Internet directly. The initial problem of not being able
to download any plugins was easily resolved by entering proxy settings in
the Jenkins admin UI. I was able to get Linux shell commands working with a
http_proxy environment variable. It's gotten pretty ugly from there, though.

The Android SDK and Gradle build tools each had proxy settings. Docker
containers need to be started with proxy settings. Java and SBT each have
proxy settings. The HockeyApp plugin has a bug preventing use with a proxy.
And it continues...

Does anyone else run Jenkins behind a proxy server? Is it a maintenance
nightmare? I'm beginning to think we are going to have to get the Jenkins
instances out from behind the proxy or face ongoing maintenance headaches.

Thanks,
Curtis

-- 
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/CAGkg-e%3D_Qb89DiJpVALePvRV2hnBdQaS-LwSr%2Bk0%2B26r8K1r0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to pass parameters to Jenkins Pipeline?

2017-07-06 Thread Curtis Kline
Along these same lines, I'd like to have a "Choice" parameter where the
user can select a build type. I'll then use the produced environment
variable ($TYPE) in the build steps. In the Post steps, I'd like to deploy
the right type of build via an API token. The API token will be different
depending on which of the types were selected. I'm imagining something like:

IF $TYPE==BETA
THEN TOKEN=12345

That way I could use $TOKEN in my post-build deploy step.

Can anyone point me in the right direction on this?

Thanks,
Curtis


On Thu, Jul 6, 2017 at 2:03 PM, David Karr 
wrote:

> On Thu, Jul 6, 2017 at 10:23 AM, Kai  wrote:
> > Hi,
> >
> > We are trying to setup a Jenkins pipeline and have a Deploy step to
> deploy a
> > specific version of the application.
> >
> > The pipeline job will be invoked programmatically by another system.
> >
> > Is there a way to pass in parameters programmatically to the pipeline
> job so
> > it knows which version to deploy?
>
> This should be a good summary of your options:
> https://wiki.jenkins.io/display/JENKINS/Parameterized+Build .
>
> >
> > Thanks
> >
> > --
> > 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/
> c2c2f562-acce-475c-8a5f-eb0544118113%40googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/CAA5t8VpAmUbM90g6ujikFMfg_C_SGLE4ZgHwzCXDaUySMmXeng%
> 40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAGkg-e%3D3YnaABRbHy4BQrWzF%3DgE1sUgNsBSBXbSpiMFiOdxe6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: setup jenkins job to build environment, build, compile, and run unit tests. Am I on the right track?

2015-11-18 Thread Curtis Kline
Walter,

You can think of Jenkins as a GUI for cron. It does a great job scheduling
commands that run on your OS of choice. Anything you have installed on the
Jenkins host can be scheduled via the Jenkins UI. But of course to be able
to run the commands you'll need to install the utilities (build
environment, test framework, etc.).

So, to answer your questions: yes, you seem to be heading in the right
direction. You can use ANT if you install it (or tell jenkins to install it
automatically, which you can do from the system configuration page at
http://jenkinshostname/configure).

I've never used Google Test, but there should be no reason you can't use it
(again, after you install it on your Jenkins host).

For your embedded processor, can you build for that processor on a regular
x86 Linux machine? If not, you could consider running Jenkins on the system
itself. If the system can run Java 7 and sshd, it should be capable of
being a Jenkins "slave"
.

Feel free to ping me directly with questions.

Curtis
curtiskline at gmail dot com



On Wed, Nov 18, 2015 at 11:32 AM, Walter Gunter 
wrote:

> I am wondering if I am going down the right path.  I was stuck for a while
> thinking I was doing good when all jenkins was doing was pulling my code
> from my gitlab repo and then calling it successful.  I didn't for the life
> of me know what to do next to be able to compile successfully without my
> current build environment, like on my development machine. We are building
> in C++.
>
>1. I realized I had two servers, one was windows and one was linux, so
>i forced it to use the linux machine (running ubuntu).
>2. I found that I could run terminal commands in an Execute Shell, so
>I started down the path to build teh environment.
>   1. Should this be a bash script?
>   2. I would like to recreate this on a different linux machine for
>   my teammates
>   3. also, we will need to build for an embedded processor running
>   linux that we have patch with RealTime Linux
>
>
> Questions:
>
>1. Is this the correct approach?
>2. How to make it use Google Test correctly.
>   1. http://www.yolinux.com/TUTORIALS/Cpp-GoogleTest.html
>   2. Should I be using ANT? Can I use ANT?
>
>
> --
> 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/0272a7b2-f195-4061-b44e-cd8cecd1e3de%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAGkg-en23RESgRX9Sr_eF7eUFcwwgOfOt%3DAPED9iic5hVw4TTg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Plain credentials plugin disabled

2015-11-05 Thread Curtis Kline
On Jenkins 1.635 I am trying to use the Plain Credentials plugin version 
1.1 to store an API token as a credential. However in the Plugin Manager 
the "Enabled" box for this plugin is not checked. I also cannot check the 
box. When I hover over it, I get a message saying that it cannot be 
disabled because some other plugins are using it. 

Any suggestions on how to get the Plain Credentials plugin enabled?

Thanks in advance.

Curtis

-- 
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/a0d01290-76a3-4729-9263-0e047bc68166%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


S3 plugin 0.6 fails with Jenkins 1.554.2

2014-06-13 Thread 'Curtis Kline' via Jenkins Users
We just updated Jenkins to latest LTS release, and S3 plugin to 0.6. Now
all S3 uploads fail with this error:

ERROR: Publisher hudson.plugins.s3.S3BucketPublisher aborted due to
 exception
 java.lang.StringIndexOutOfBoundsException: String index out of range: -25
 at java.lang.String.substring(String.java:1937)
 at java.lang.String.substring(String.java:1904)
 at hudson.plugins.s3.S3Profile.upload(S3Profile.java:123)
 at hudson.plugins.s3.S3BucketPublisher.perform(S3BucketPublisher.java:174)
 at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
 at
 hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
 at
 hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
 at hudson.model.Build$BuildExecution.post2(Build.java:183)
 at
 hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:725)
 at hudson.model.Run.execute(Run.java:1709)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
 at hudson.model.ResourceController.execute(ResourceController.java:88)
 at hudson.model.Executor.run(Executor.java:231)


I opened this issue to report:
https://issues.jenkins-ci.org/browse/JENKINS-23432

Anyone else having problems with the 0.6 release of the S3 plugin?

Thanks,
Curtis

-- 
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.
For more options, visit https://groups.google.com/d/optout.


OS-X build slaves

2014-06-03 Thread 'Curtis Kline' via Jenkins Users
We have 8 Mac Mini build slaves and another four slaves on OS-X VMs running
on Mac Pros. We currently configure each slave manually, which takes about
30 minutes per unit.

Does anyone use Puppet/Chef/other for configuring OS-X Jenkins slaves? How
about VM technology? If VMs, what hardware/hypervisor?

Just looking for options and input as our Mac Mini farm expands.

Thanks,
Curtis

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Gerrit trigger troubleshooting

2014-05-30 Thread 'Curtis Kline' via Jenkins Users
Does anyone have suggestions for troubleshooting the Gerrit trigger plugin?
I have a Gerrit repo that simply does not trigger any jobs on Jenkins. I
can change the Jenkins Gerrit trigger job config by simply entering a
different Gerrit repo name and the job is triggered flawlessly. But when I
change the repo name back to this one, the job never runs on any event
(Patchset created, change merged, etc).

I can trigger manually using the Query and Trigger Gerrit Patches option,
and the job runs.

Thanks,
Curtis

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: a few Jenkins questions

2014-05-29 Thread 'Curtis Kline' via Jenkins Users
 when folks talk about build numbers, they don't talk in the thousands..

A sampling of some of our more frequent current builds shows that we have
few builds that are NOT in the thousands. The highest one is on build
number 31751 right now. That's the only one above 10,000, though.

Another thing you could check out is the next build number plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Next+Build+Number+Plugin

If you have that installed, your users could have clicked a link on the
build page and set the build number to anything they want.

Curtis





On Thu, May 29, 2014 at 6:02 AM, wak...@comcast.net wrote:

 beyond the expected java int issues, I would think that when folks talk
 about build numbers, they don't talk in
 the thousands..perhaps its just me ?  We are in the development stages at
 the moment and builds are happening
 quite often, thus the numbers can get pretty high. I'll have a different
 build set up when we're ready to Release.

 anyways, thanks to Matthew and Daniel for the support.

 --
 *From: *Daniel Beck m...@beckweb.net
 *To: *jenkinsci-users@googlegroups.com
 *Sent: *Thursday, May 29, 2014 8:30:32 AM
 *Subject: *Re: a few Jenkins questions



 On 29.05.2014, at 13:37, wak...@comcast.net wrote:

  would be a build number reset at some point ?

 Well, it's an int. After build number 2.147.483.647 it wraps around to -
 2.147.483.648 and Jenkins basically breaks, failing to show these builds
 on the UI.

 Not sure this is a relevant limitation though.

 --
 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.
 For more options, visit https://groups.google.com/d/optout.

  --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Error when trying to configure Jenkins: hudson.plugins.git.GitException: Error performing command: git rev-parse --is-inside-work-tree

2014-05-09 Thread Curtis Kline
Oana, on my OS-X slaves Git is located in /usr/bin/git. /usr/bin is in the
path (run 'echo $PATH' in a terminal window) so I don't have to enter a
location in the slave config. But if you needed to, this is where you do
that:

https://www.evernote.com/shard/s2/sh/16f8b6f9-282f-45be-9366-f92c4d114152/02ca323cb8180b6e12d8a503c5a38259

That config page can be found at http://*jenkins-server*/computer/*nodename*
/configure

Curtis



On Fri, May 9, 2014 at 8:26 AM, Mark Waite mark.earl.wa...@gmail.comwrote:

 Sorry, missed the reading of your log file.  Your MacOS slave needs to
 have the location of its git program configured in the node
 configuration.  Currently, Jenkins thinks that the correct git program for
 your MacOS slave is named git.exe.  I suspect that the correct git
 program for your MacOS slave is named git rather than git.exe.


 On Fri, May 9, 2014 at 9:24 AM, Mark Waite mark.earl.wa...@gmail.comwrote:

 You either need to install command line git (msysgit) on your windows
 machine, or add JGit to the global Jenkins configuration and use JGit as
 the implementation instead of git.

 Mark Waite


 On Fri, May 9, 2014 at 9:07 AM, Oana Rusu oana.rusu...@gmail.com wrote:

 Hi all,

 I have a Windows server running Jenkins and on that I configured a slave
 for Mac, as I want to run an iOS project on it.
 My slave is now connected to the Windows server.
 I tried to add a new job that connects to my .git repository, but I get
 the followings errors. Can anyone help me figuring this out?

 Started by user anonymous http://ci.simplifydigital.co.uk:8080/user/null
 Building remotely on Fusion_Automation_iOS_Slave 
 http://ci.simplifydigital.co.uk:8080/computer/Fusion_Automation_iOS_Slave 
 in workspace /Users/Shared/Jenkins/workspace/Fusion_iOS_UAT
 ERROR: Workspace has a .git repository, but it appears to be 
 corrupt.hudson.plugins.git.GitException 
 http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException:
  Error performing command: git rev-parse --is-inside-work-tree
 at 
 org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1190)
  
 http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandInentity=method
 at 
 org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1160)
  
 http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandInentity=method
 at 
 org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1156)
  
 http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandInentity=method
 at 
 org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:972)
  
 http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandentity=method
 at 
 org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:982)
  
 http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandentity=method
 at 
 org.jenkinsci.plugins.gitclient.CliGitAPIImpl.hasGitRepo(CliGitAPIImpl.java:136)
  
 http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.hasGitRepoentity=method
 at hudson.plugins.git.GitAPI.hasGitRepo(GitAPI.java:186) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitAPI.hasGitRepoentity=method
 at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at 
 hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299)
 at 
 hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280)
 at 
 hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239)
 at hudson.remoting.UserRequest.perform(UserRequest.java:118)
 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
 at hudson.remoting.Request$2.run(Request.java:328)
 at 
 hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at hudson.remoting.Engine$1$1.run(Engine.java:63)
 at java.lang.Thread.run(Thread.java:744)
 Caused by: java.io.IOException: Cannot run program git.exe (in directory 
 /Users/Shared/Jenkins/workspace/Fusion_iOS_UAT): error=2, No such file or 
 directory
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
 at hudson.Proc$LocalProc.init(Proc.java:244)
 at hudson.Proc$LocalProc.init(Proc.java:216)
 at 

Re: How to reset the build number

2014-04-16 Thread Curtis Kline
There may be a way to set the next build number within the Jenkins core,
but I use this plugin:

https://wiki.jenkins-ci.org/display/JENKINS/Next+Build+Number+Plugin

It provides a useful link in the left column of the job page: Set next
build number


Curtis



On Tue, Apr 15, 2014 at 11:13 PM, Praveen Jaikumar praveens...@gmail.comwrote:

 We restored the Jenkins to previous time .  Even thought the jobs in the
 backend, Its not displaying in the front end as previous build is greated
 than the current build.Can any one tell me how to reset the build in  Jenkins
 1.555.

 --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Parameterized job triggering based on git branch ?

2014-04-09 Thread Curtis Kline
Sure. The variable named GIT_BRANCH expands to the name of the branch that
was built (from the Git plugin).

Then you could use the Conditional Build Step
pluginhttps://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin
to
match the branch to a string and execute build steps based on that match.

Curtis



On Wed, Apr 9, 2014 at 11:43 AM, Maneesh M P maneesh.po...@gmail.comwrote:

 Is there a way I can know the git branch which jenkins commenced the job
  on?
 If then based on that value can I kick on different pipeline jobs ? ie,
  for master branch, one pipeline and release branch another ?

 Thanks,
 M

 --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Master/Slave On Same Machine -- Mac/Windows

2014-04-07 Thread Curtis Kline
Hello,

I do this in my test environment. I have a quad-core Mac Mini with 16GB of
RAM, and it's running Jenkins as the Master. I have Vmware Fusion running
on the Mac, and there are two VMs: one Windows 7 and one Linux. This is not
a production setup so it doesn't get a lot of use, but I definitely can run
concurrent jobs on the master and both slaves.

As long as you have the expertise to set up the VMs properly, you should
not have any issues with this.

Curtis



On Mon, Apr 7, 2014 at 2:12 PM, cameron.marshall...@gmail.com wrote:

 Hi All,

 I have a master-only configuration on OS X due to developing iOS apps,
 etc.; however, I need to also create some build jobs for .NET projects as
 well. I am looking at creating a VM on my Mac and then setting up a
 master/slave configuration with the master being on the Mac side and the
 slave being on the Windows side VM (all on the same machine). Does anyone
 have any experience with this? My concern is that one side or the other is
 active; they are both not active at the same time. Does this configuration
 work especially with the Master kicking off a job on the Windows slave side
 while also executing jobs on the Mac side?

 --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Downstream cleanup job

2014-03-26 Thread Curtis Kline
I have a scenario that seems like it would be pretty common, and is maybe 
somewhat similar to the one David Campos posted to the list recently.

b1, b2, and b3 are QA testing jobs that each rely on a “clean” VM. b4 is the 
job that cleans the VMs.

For awhile, we had b4 set up as a downstream job from each of b1, b2, and b3. 
However sometimes one of the testing jobs would get queued up while another 
testing job was being run, and would end up running before the cleanup job. 
That breaks everything.

Next we tried using the Throttle Concurrent builds plugin, and put all four of 
the above jobs into one group with a max concurrent of 1. We had the same 
problem as before, in that if a testing job was queued while another testing 
job was running, the cleanup job would run too late.

Next we tried three Build Flow jobs, with the Guard - Rescue form. Each testing 
job would be in the Guard section, and the cleanup job in the Rescue section. 
We put all three of the Build Flow jobs in one group for Throttle Concurrent 
Builds. However we immediately found that multiple build flow jobs would run at 
the same time, as it seems that Build Flow jobs ignore the Throttle Concurrent 
Builds plugin.

Any suggestions here?  We just need the cleanup job to always run after a 
testing job, so the VMs are fresh before the next testing job runs. I am 
probably missing something simple.

Thanks!
Curtis


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Windows git plugin / git client plugin problems

2014-02-11 Thread Curtis Kline
I ran into the same problem today for the first time. I am using Git plugin
1.5.0 (still scared to jump to 2.0) and Git Client Plugin 1.6.1. I don't
use plink, but rather the ssh included with msysgit 1.8.5. My Windows
slaves are connected using JNLP.

I desperately need some way to control that timeout value, as running the
clone command locally on the box indicates that the first clone will take
at least 15 minutes. I've reviewed several issues on the Jenkins issue
tracker, and haven't seen any solutions to controlling the timeout on
JNLP-connected slaves.

Any suggestions would be greatly appreciated!




On Tue, Feb 11, 2014 at 3:59 PM, Slide slide.o@gmail.com wrote:

 What is the path to Git? I use the one in ProgramFiles\Git\cmd instead of
 ProgramFiles\Git\bin.


 On Tue, Feb 11, 2014 at 4:49 PM, Dunnigan, Terrence J 
 terrence.j.dunni...@boeing.com wrote:

 Hi all,



 I've run into an issue where the latest git plugin / git client plugins
 time out. It pulls down the files in .git\objects\pack and elsewhere, but
 nothing beyond the .git folder.



 Here's my setup:



 Jenkins server:

 Jenkins LTS 1.532.1 running on a Windows 7 PC

 Jenkins GIT client plugin 1.6.2 (also on 1.6.1)

 Jenkins GIT plugin 2.0.1



 Windows 7 slave PC:

 Jenkins is running as a service using an administrative account

 Git 1.8.3 is installed, along with PuTTY.

 GIT_SSH is set to C:\PuTTY\plink.exe

 Path includes C:\PuTTY



 Here's the error message once I hit 10 minutes:



 Started by user Terry Dunnigan

 Building remotely on slave in workspace C:\hudson_remote\workspace\job name

 Cloning the remote Git repository

 Cloning repository g...@myrepo.git

 Fetching upstream changes from g...@myrepo.git

 using GIT_SSH to set credentials

 Fetching upstream changes from g...@myrepo.git

 using GIT_SSH to set credentials

 ERROR: Timeout after 10 minutes

 FATAL: Failed to fetch from g...@myrepo.git

 hudson.plugins.git.GitException 
 http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException:
  Failed to fetch from g...@myrepo.git

 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:625) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFromentity=method

 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:847) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChangesentity=method

 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:872) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkoutentity=method

 at hudson.model.AbstractProject.checkout(AbstractProject.java:1411) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkoutentity=method

 at 
 hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
  
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckoutentity=method

 at 
 jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 
 http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkoutentity=method

 at 
 hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:557)
  
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.runentity=method

 at hudson.model.Run.execute(Run.java:1665) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method

 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.runentity=method

 at 
 hudson.model.ResourceController.execute(ResourceController.java:88) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.executeentity=method

 at hudson.model.Executor.run(Executor.java:246) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.runentity=method

 Caused by: hudson.plugins.git.GitException 
 http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException:
  Command git fetch --tags --progress g...@myrepo.git 
 +refs/heads/*:refs/remotes/origin/* returned status code -1:



 stderr: trace: built-in: git 'fetch' '--tags' '--progress' 'g...@myrepo.git'
 '+refs/heads/*:refs/remotes/origin/*'

 trace: run_command:
 'C:\Users\me\AppData\Local\Temp\ssh6588671275929067852.bat' 'g...@myrepo.git'
 'git-upload-pack '\''myrepo.git'\'''



 trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all'
 '--quiet'

 trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all'

 trace: built-in: git 'rev-list' '--objects' '--stdin' '--not' '--all'





 Any thoughts?



 Thanks everyone.



 Terry Dunnigan

 --
 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 

Re: Windows git plugin / git client plugin problems

2014-02-11 Thread Curtis Kline
Thanks Mark. I think you're right.

My current problem involves projects that really can't wait for my testing
of the next release of the git plugin (although I am definitely interested
in doing that). Any short-term suggestions on how to get this to work with
my current setup? I thought about switching to Plink instead of the ssh
that comes with msysgit in hopes that I could clone my huge repo inside the
10 minute limit, but I've tried various people's tutorials with no luck.
For example, the Msysgit install routine is supposed to give you an option
for this if you've used Plink on that system before, but that option never
appears.

Thanks again.

Curtis





On Tue, Feb 11, 2014 at 4:31 PM, Mark Waite mark.earl.wa...@gmail.comwrote:

 Curtis, I think your problem is a different problem than the original
 description from Terry.

 I believe Terry is attempting to clone a repository which should clone in
 significantly less than 10 minutes, while you already know that your clone
 will take more than 10 minutes (due to the size of the repository and the
 limitation in msys git that it cannot transfer more than about 1 MB/second
 using ssh).

 The next release of the git plugin (after 2.0.1) adds a timeout field to
 the job configuration so that users with large repositories (like you and
 me) can set a larger timeout value for those jobs which need it.  If you
 need it sooner, or are willing to assist with the testing, you could
 compile the latest git plugin and install it on a separate Jenkins instance
 for testing.

 Refer to https://issues.jenkins-ci.org/browse/JENKINS-20445.

 Refer to https://github.com/jenkinsci/git-plugin/pull/197 for the changes
 to git-plugin.

 Refer to https://github.com/jenkinsci/git-client-plugin/pull/92 for the
 changes to git-client-plugin, already available in 1.6.2

 You should probably avoid the JGit implementation when using large
 repositories.  The recent JGit versions no longer hang when cloning large
 repositories, but they do significantly increase the size of the Java
 virtual machine while they are cloning large repositories.

 Thanks,
 Mark Waite


 On Tue, Feb 11, 2014 at 5:20 PM, Mark Waite mark.earl.wa...@gmail.comwrote:

 My technique is the opposite of Slide's.  I always use the git executable
 in the bin directory.  There were issues reported when the git executable
 in the cmd directory was used instead of using the executable in the bin
 directory.

 You might consider a test drive of the JGit implementation in your
 environment to see if it behaves any differently.  The JGit implementation
 does not have all the features of the command line git implementation, but
 it may be sufficient for your use case.

 Was this job upgraded from a previous Git plugin version?  If so, have
 you defined the credentials and configured the job to use those credentials?

 Is there some environment variable that is causing those unexpected
 trace: and run_command: strings in the output?  I don't see those in my
 use of command line git on Windows.


 On Tue, Feb 11, 2014 at 4:59 PM, Slide slide.o@gmail.com wrote:

 What is the path to Git? I use the one in ProgramFiles\Git\cmd instead
 of ProgramFiles\Git\bin.


 On Tue, Feb 11, 2014 at 4:49 PM, Dunnigan, Terrence J 
 terrence.j.dunni...@boeing.com wrote:

 Hi all,



 I've run into an issue where the latest git plugin / git client plugins
 time out. It pulls down the files in .git\objects\pack and elsewhere, but
 nothing beyond the .git folder.



 Here's my setup:



 Jenkins server:

 Jenkins LTS 1.532.1 running on a Windows 7 PC

 Jenkins GIT client plugin 1.6.2 (also on 1.6.1)

 Jenkins GIT plugin 2.0.1



 Windows 7 slave PC:

 Jenkins is running as a service using an administrative account

 Git 1.8.3 is installed, along with PuTTY.

 GIT_SSH is set to C:\PuTTY\plink.exe

 Path includes C:\PuTTY



 Here's the error message once I hit 10 minutes:



 Started by user Terry Dunnigan

 Building remotely on slave in workspace C:\hudson_remote\workspace\job name

 Cloning the remote Git repository

 Cloning repository g...@myrepo.git

 Fetching upstream changes from g...@myrepo.git

 using GIT_SSH to set credentials

 Fetching upstream changes from g...@myrepo.git

 using GIT_SSH to set credentials

 ERROR: Timeout after 10 minutes

 FATAL: Failed to fetch from g...@myrepo.git

 hudson.plugins.git.GitException 
 http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException:
  Failed to fetch from g...@myrepo.git

 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:625) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFromentity=method

 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:847) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChangesentity=method

 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:872) 
 

Git plugin 2.0 with Gerrit Trigger plugin

2014-02-11 Thread Curtis Kline
Is anyone using the 2.0 Git plugin and the Gerrit Trigger plugin together
successfully? I know there was a thread back around 10/29/2013 about this,
but there didn't seem to be a clear answer as to whether these two plugins
would now co-exist.

I tried a quick trial on my test instance and the Gerrit Trigger did not
seem to be working when I had the Git Plugin 2.0 installed.

Curtis

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Windows git plugin / git client plugin problems

2014-02-11 Thread Curtis Kline
Thanks Mark. I'll try running my Windows slave from the command line. So
the timeout value is in minutes?

Curtis



On Tue, Feb 11, 2014 at 5:54 PM, Mark Waite mark.earl.wa...@gmail.comwrote:

 Sorry, I gave bad information.  The timeOut property I listed is incorrect.

 It should be -Dorg.jenkinsci.plugins.gitclient.Git.timeOut=30


 On Tue, Feb 11, 2014 at 6:34 PM, Mark Waite mark.earl.wa...@gmail.comwrote:

 If you have control of the git repository, and if you don't mind allowing
 the source code to be readable by anyone inside your network, you could
 enable a git protocol server in addition to your ssh protocol server.  The
 download speed through git protocol is very near wire speed, so should be
 faster than the ssh in msysgit.

 If you start the Windows slave agent from a command line (rather than
 from JNLP or from a service), you should be able to pass the property on
 the slave agent startup command line
 -Dorg.jenkinsci.plugins.gitclient.timeOut=30.

 If you're starting the Windows slave agent from a service, there is
 probably a registry key somewhere which controls the startup of the Java
 process that is the slave agent.  If you can find that key, you may be able
 to modify it to include that command line argument to set the timeOut value.

 Mark Waite


 On Tue, Feb 11, 2014 at 6:02 PM, Curtis Kline ckl...@evernote.comwrote:

 Thanks Mark. I think you're right.

 My current problem involves projects that really can't wait for my
 testing of the next release of the git plugin (although I am definitely
 interested in doing that). Any short-term suggestions on how to get this to
 work with my current setup? I thought about switching to Plink instead of
 the ssh that comes with msysgit in hopes that I could clone my huge repo
 inside the 10 minute limit, but I've tried various people's tutorials with
 no luck. For example, the Msysgit install routine is supposed to give you
 an option for this if you've used Plink on that system before, but that
 option never appears.

 Thanks again.

 Curtis





 On Tue, Feb 11, 2014 at 4:31 PM, Mark Waite 
 mark.earl.wa...@gmail.comwrote:

 Curtis, I think your problem is a different problem than the original
 description from Terry.

 I believe Terry is attempting to clone a repository which should clone
 in significantly less than 10 minutes, while you already know that your
 clone will take more than 10 minutes (due to the size of the repository and
 the limitation in msys git that it cannot transfer more than about 1
 MB/second using ssh).

 The next release of the git plugin (after 2.0.1) adds a timeout field
 to the job configuration so that users with large repositories (like you
 and me) can set a larger timeout value for those jobs which need it.  If
 you need it sooner, or are willing to assist with the testing, you could
 compile the latest git plugin and install it on a separate Jenkins instance
 for testing.

 Refer to https://issues.jenkins-ci.org/browse/JENKINS-20445.

 Refer to https://github.com/jenkinsci/git-plugin/pull/197 for the
 changes to git-plugin.

 Refer to https://github.com/jenkinsci/git-client-plugin/pull/92 for
 the changes to git-client-plugin, already available in 1.6.2

 You should probably avoid the JGit implementation when using large
 repositories.  The recent JGit versions no longer hang when cloning large
 repositories, but they do significantly increase the size of the Java
 virtual machine while they are cloning large repositories.

 Thanks,
 Mark Waite


 On Tue, Feb 11, 2014 at 5:20 PM, Mark Waite 
 mark.earl.wa...@gmail.comwrote:

 My technique is the opposite of Slide's.  I always use the git
 executable in the bin directory.  There were issues reported when the git
 executable in the cmd directory was used instead of using the executable 
 in
 the bin directory.

 You might consider a test drive of the JGit implementation in your
 environment to see if it behaves any differently.  The JGit implementation
 does not have all the features of the command line git implementation, but
 it may be sufficient for your use case.

 Was this job upgraded from a previous Git plugin version?  If so, have
 you defined the credentials and configured the job to use those 
 credentials?

 Is there some environment variable that is causing those unexpected
 trace: and run_command: strings in the output?  I don't see those in 
 my
 use of command line git on Windows.


 On Tue, Feb 11, 2014 at 4:59 PM, Slide slide.o@gmail.com wrote:

 What is the path to Git? I use the one in ProgramFiles\Git\cmd
 instead of ProgramFiles\Git\bin.


 On Tue, Feb 11, 2014 at 4:49 PM, Dunnigan, Terrence J 
 terrence.j.dunni...@boeing.com wrote:

 Hi all,



 I've run into an issue where the latest git plugin / git client
 plugins time out. It pulls down the files in .git\objects\pack and
 elsewhere, but nothing beyond the .git folder.



 Here's my setup:



 Jenkins server:

 Jenkins LTS 1.532.1 running on a Windows 7 PC

 Jenkins GIT client

Re: How to get APK from soucecode from Jenkins

2014-02-04 Thread Curtis Kline
Sagar,

Jenkins is basically an automation tool. If you can't create an apk from
your source code without Jenkins, you aren't too likely to be able to do
that with Jenkins, either. I use Jenkins to automate builds for several
native Android apps, specifically using the Maven plug-in for Jenkins.

What exactly are the problems you're experiencing?

Curtis



On Sun, Feb 2, 2014 at 10:40 AM, Sagar Mistry pappusa...@gmail.com wrote:

 THis project is basically for Android Based

 On Monday, 3 February 2014 00:08:26 UTC+5:30, Sagar Mistry wrote:

 Hi Guys,

 I have a problem to get apk from my project code.. can any one help me
 out to solve this from jenkins

 Thanks in advance:)

  --
 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.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: how to install Jenkins Slave on Windows

2013-12-30 Thread Curtis Kline
As mentioned, you can set up your slave to be used for jobs that are tied
to it, like this: http://note.io/JqdVvr

If you do that, then you'll need to assign your Jenkins jobs to that salve,
like so:  http://note.io/1ajHyF2

Alternatively, you can configure the slave to be utilized as much as
possible, and Jenkins will send any jobs that come into the queue to that
slave (along with any others set up the same way).


- Curtis



On Fri, Dec 20, 2013 at 8:48 PM, Vivekanand S V svvivekan...@gmail.comwrote:

 You create a job in master, in the job configuration page just mention the
 slave (you'll find it named as NODE in config page) in which you want to
 run the job.


 On Sat, Dec 21, 2013 at 5:22 AM, rocketdoctor sc...@rocketdoctor.comwrote:

 thanks curtis after reading that again I figured it out,  but now I don't
 understand how to create a Job for the Slave system



 --
 View this message in context:
 http://jenkins-ci.361315.n4.nabble.com/how-to-install-Jenkins-Slave-on-Windows-tp4684640p4685136.html
 Sent from the Jenkins users mailing list archive at Nabble.com.

 --
 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.
 For more options, visit https://groups.google.com/groups/opt_out.


  --
 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.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Git polling - java errors

2013-12-17 Thread Curtis Kline
We're using Git plugin 1.5.0 on Jenkins 1.509.4. We have several Maven
jobs, and on a new one we set up in the past few days we are seeing some
strange errors in the Git polling log. Much of the time the Git polling
works fine, but several times per day we get this error (see below).
Afterwards, it seems like Git polling doesn't happen again for much longer
than the 20 minute interval it's configured for.

The master and the two slaves this job is tied to are running Linux. The
mavenHome path mentioned in the error message is valid on the master, but
not on the slaves where this job is actually running (the slave has a
significantly different directory structure than the master).

Any thoughts would be appreciated.

Curtis


Here's the error message:


Started on Dec 17, 2013 10:41:48 AM
Using strategy: Default
[poll] Last Built Revision: Revision
746a11c7cd9ce666d9bd1d8b00edf185db078530 (origin/master)
ERROR: Failed to record SCM polling for
hudson.maven.MavenModuleSet@40180fb0[Web_Web]
java.lang.RuntimeException: Unable to determine Maven version
at 
org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:157)
at 
org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:110)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:918)
at 
hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
at 
hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165)
at hudson.model.Run.getEnvironment(Run.java:2068)
at 
hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:649)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:626)
at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
at hudson.scm.SCM.poll(SCM.java:373)
at 
hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1549)
at hudson.model.AbstractProject._poll(AbstractProject.java:1521)
at hudson.model.AbstractProject.poll(AbstractProject.java:1455)
at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468)
at 
hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: mavenHome
'/usr/share/tomcat6/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven3'
doesn't seem to exist on this node (or you don't have sufficient
rights to access it)
at 
hudson.maven.MavenEmbedderUtils.buildClassRealm(MavenEmbedderUtils.java:76)
at 
hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:188)
at 
hudson.maven.MavenEmbedderUtils.isAtLeastMavenVersion(MavenEmbedderUtils.java:215)
at 
org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:45)
at 
org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:33)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
... 5 more

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Git polling - java errors

2013-12-17 Thread Curtis Kline
Thanks Daniel. I was hopeful that would help, although I do have other
Maven projects on the same slave that are not having any problems with Git
polling. I entered the correct tool location for Maven's installation on
the slave, but I am still getting exactly the same errors on occasional Git
polls.

Any other thoughts?

Curtis



On Tue, Dec 17, 2013 at 1:05 PM, Daniel Beck m...@beckweb.net wrote:

 In the slaves' configuration, check 'Tool Locations' and define the paths
 to Maven on the slaves for the Maven versions you've configured in the jobs.

 On 17.12.2013, at 21:47, Curtis Kline ckl...@evernote.com wrote:

  We're using Git plugin 1.5.0 on Jenkins 1.509.4. We have several Maven
 jobs, and on a new one we set up in the past few days we are seeing some
 strange errors in the Git polling log. Much of the time the Git polling
 works fine, but several times per day we get this error (see below).
 Afterwards, it seems like Git polling doesn't happen again for much longer
 than the 20 minute interval it's configured for.
 
  The master and the two slaves this job is tied to are running Linux. The
 mavenHome path mentioned in the error message is valid on the master, but
 not on the slaves where this job is actually running (the slave has a
 significantly different directory structure than the master).
 
  Any thoughts would be appreciated.
 
  Curtis
 
 
  Here's the error message:
 
 
  Started on Dec 17, 2013 10:41:48 AM
  Using strategy: Default
  [poll] Last Built Revision: Revision
 746a11c7cd9ce666d9bd1d8b00edf185db078530 (origin/master)
  ERROR: Failed to record SCM polling for
 hudson.maven.MavenModuleSet@40180fb0[Web_Web]
  java.lang.RuntimeException: Unable to determine Maven version
at
 org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:157)
at
 org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:110)
at
 hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:918)
at
 hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
at
 hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165)
at hudson.model.Run.getEnvironment(Run.java:2068)
at
 hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:649)
at
 hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:626)
at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
at hudson.scm.SCM.poll(SCM.java:373)
at
 hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1549)
at hudson.model.AbstractProject._poll(AbstractProject.java:1521)
at hudson.model.AbstractProject.poll(AbstractProject.java:1455)
at
 hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468)
at
 hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
  Caused by: java.lang.IllegalArgumentException: mavenHome
 '/usr/share/tomcat6/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven3'
 doesn't seem to exist on this node (or you don't have sufficient rights to
 access it)
at
 hudson.maven.MavenEmbedderUtils.buildClassRealm(MavenEmbedderUtils.java:76)
at
 hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:188)
at
 hudson.maven.MavenEmbedderUtils.isAtLeastMavenVersion(MavenEmbedderUtils.java:215)
at
 org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:45)
at
 org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:33)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at
 hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
... 5 more
 
 
  --
  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.
  For more options, visit https://groups.google.com/groups/opt_out.

 --
 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

Re: how to install Jenkins Slave on Windows

2013-12-17 Thread Curtis Kline
Scott, have you tried the instructions on this page?

https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines

Curtis



On Tue, Dec 17, 2013 at 4:05 PM, rocketdoctor sc...@rocketdoctor.comwrote:

 Im not clear on how to install the Jenkins slave on my windows system.  I
 don't see a special build for the Jenkins slave,  is it a special download
 or do i need to just install the normal Jenkins build



 --
 View this message in context:
 http://jenkins-ci.361315.n4.nabble.com/how-to-install-Jenkins-Slave-on-Windows-tp4684640.html
 Sent from the Jenkins users mailing list archive at Nabble.com.

 --
 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.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Gerrit Trigger generating large queue of jobs

2013-12-16 Thread Curtis Kline
We have a repo with lots of development going on, and we want to trigger
builds using the Gerrit Trigger plugin (using change merged).
Unfortunately the plugin queues up builds on this repo every few minutes,
since we're checking in lots of changes. The builds take 25 minutes, so
right now there are six of these waiting in the queue.

Any suggestions on how to best control this? Ideally I'd like the Gerrit
Trigger not to put a job in the queue if there's already an instance of
that job waiting in the queue.

If we were still doing this with Git polling, we'd just reduce the polling
to every 20 minutes or so.

Any ideas would be appreciated.

Thanks,
Curtis

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Gerrit trigger exclusions

2013-11-13 Thread Curtis Kline
We have just started using the Gerrit Trigger plugin, which looks like it
will be a big help. We have set up the trigger on change merged on a
Gerrit project, triggering on our active development branch. The only
problem is that we have a lot of automated commits to that branch that are
made by a localization system, just updating some language strings. It
would be ideal if the Gerrit Trigger could somehow exclude those commits.
They happen in various parts of the directory structure for the project, so
excluding a path is not too helpful.

Does anyone have suggestions? The most ideal scenario would be to exclude
all commits made by a particular user in Gerrit, since these all come from
a specific automation user.

Thanks,
Curtis

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Parameterized build: pull choices from a file

2013-11-13 Thread Curtis Kline
I have a parameterized build with a choice parameter, so that the user
can select from a list of possible parameters for this job. Rather than a
static list of choices, I'd like to use a file in the workspace that
contains a list of the currently available choices.

Any suggestions on how to accomplish this?

Thanks,
Curtis

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: cloud / storing build data

2013-11-11 Thread Curtis Kline
Phil,

Check out the Publish Over plugin for ssh or ftp transfers of artifacts.
https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over

Also the Amazon S3 plugin for pushing artifacts to an S3 bucket:
https://wiki.jenkins-ci.org/display/JENKINS/S3+Plugin

I am unaware of any working Dropbox plugin.

Curtis



On Sun, Nov 10, 2013 at 11:10 PM, Philipp Kraus
philipp.kr...@flashpixx.dewrote:

 Hello,

 I use Jenkins with some C++ builds (on different OS eg Linux, OSX Windows)
 and Marvan build for Java. My build slaves are connect via JNLP to the
 Jenkins master. Is there any Jenkins plugin, that allows that the builded
 data is transfered to a cloud service like DropBox. Our build scripts
 create some technical reports, so we would like to push them into a storage
 without external tools eg Curl. Does any plugin can handle a filetransfer?

 Thanks

 Phil

 --
 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.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


S3 links from several jobs

2013-10-22 Thread Curtis Kline
I have a Build Flow job that orchestrates running three Jenkins projects
with various parameters, so there are a total of 12 (Maven) jobs that run.
After these jobs are complete, a wrap-up job is run that just emails out a
list of S3 links to the artifacts that were produced in each of the 12 jobs.

I was able to extract the build number from each of the 12 jobs using
b1.build.number (for example) and passed that to the email job to include
in the S3 links. However the filenames also include the Git branch, and I
haven't been able to pass that to the email job from within the Build Flow.

It seems that there are probably several other ways I could approach this.
One would probably be to grab the artifact filenames from the REST API
(since I already know the build numbers) and prepend my root S3 URL. I am
new to Jenkins and not too clear on the easiest way to do that, though.

Any other suggestions?

Thanks.
Curtis

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Windows 8 slaves not starting up (as a service)

2013-10-04 Thread Curtis Kline
I used JNLP to start some Windows 8 slaves, which have been set up to run
as a service. Even though the service is set to Automatic, it often
doesn't start up. In fact sometimes the service stops for no apparent
reason, and then doesn't restart. And, if the box is rebooted the service
sometimes doesn't start automatically. So, two questions:

1. Has anyone else seen this problem, and have any suggested solution?

2. When this happens, a job will be stuck in the queue because no
appropriately labeled slaves are available. Is there any suggested way to
notify me by email when this happens?

Thanks,
Curtis

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Windows 8 slaves not starting up (as a service)

2013-10-04 Thread Curtis Kline
I found the Mail Watcher plugin, which will monitor the status of the salve
nodes. This should handle my #2 item.



On Fri, Oct 4, 2013 at 8:51 AM, Curtis Kline ckl...@evernote.com wrote:

 I used JNLP to start some Windows 8 slaves, which have been set up to run
 as a service. Even though the service is set to Automatic, it often
 doesn't start up. In fact sometimes the service stops for no apparent
 reason, and then doesn't restart. And, if the box is rebooted the service
 sometimes doesn't start automatically. So, two questions:

 1. Has anyone else seen this problem, and have any suggested solution?

 2. When this happens, a job will be stuck in the queue because no
 appropriately labeled slaves are available. Is there any suggested way to
 notify me by email when this happens?

 Thanks,
 Curtis



-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Need help with Matrix-build

2013-10-03 Thread Curtis Kline
Roland, have you looked at the Build Flow plugin? I am using that instead
of the matrix builds in some circumstances.

Curtis



On Thu, Oct 3, 2013 at 9:11 AM, Roland Asmann roland.asm...@gmail.comwrote:

 Hi guys,

 I need some help with a matrix-build. Until now, I had the build
 configured to run on all nodes that have a label 'deb' and 'rpm' as axis
 'distro' combined with axis 'arch' which checks on 'i386' and 'x64'.
 This is because we are building some binaries that are specific for i386
 and x64 and packaging the builds depending in either RPM or DEB. So in all,
 we had 4 artifacts resulting.

 Now, I need to add another distro-type, namely a Windows EXE. The thing is
 that this doesn't have to be built on both architectures, since the project
 will only create a 32-bit binary.
 I know I can set the matrix to invalidate the combination 'exe' and 'x64',
 but that is not exactly doing what I want. If I would do this, it would
 never build my EXE on a 64-bit node, but I would like to have these nodes
 included in the build-pool as well! The nodes will need to have the label
 'x64' set for some other builds I have, so changing them to 'i386' is also
 not an option.

 So, the question is, how can I setup the build to run the following
 'combinations':
 - deb x i386
 - deb x x64
 - rpm x i386
 - rpm x x64
 - exe

 and have the 'exe' run on any available machine that has the label 'exe',
 no matter if it has the label 'i386' or 'x64'?

 Any help is greatly appreciated!

 Roland

  --
 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.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Build flow + email-ext

2013-09-24 Thread Curtis Kline
I think I have a pretty simple requirement for the build flow plugin and
the editable email plugin, but I could use some help getting this working.

In the build flow job I am kicking off some builds:

build( job1 )
build( job2 )
build( job3 )


Then I want to send some emails with links to build artifacts that
have been uploaded to S3, like this:

http://somelink.amazonaws.com/bucket/job1-filename-234.apk
http://somelink.amazonaws.com/bucket/job2-filename-168.apk
http://somelink.amazonaws.com/bucket/job3-filename-852.apk

Where 234 is the build number from job1, 168 is the build number
from job2, etc.

So, what do I need to do in the DSL on the build flow plugin to grab
the build numbers so they can be used in the editable email?

Thanks in advance for any assistance.

Curtis

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Build flow + email-ext

2013-09-24 Thread Curtis Kline
Thanks!

To get what I needed I had to use this syntax:

build(SendEmail, JOB1_ID : b1.build.number, JOB2_ID : b2.build.number,
 JOB3_ID : b3.build.number)



But otherwise this worked great. I just created a job called SendEmail
which has only one step: Editable Email Notification. In the body of the
email I formatted my S3 links and included the variables as follows:

http://somelink.amazonaws.com/bucket/job1-filename-$JOB1_ID.apkhttp://somelink.amazonaws.com/bucket/job1-filename-234.apk
http://somelink.amazonaws.com/bucket/job2-filename-$JOB2_ID.apkhttp://somelink.amazonaws.com/bucket/job1-filename-234.apk

etc...


Curtis



On Tue, Sep 24, 2013 at 5:03 PM, Slide slide.o@gmail.com wrote:

 b1 = build(job1)
 b2 = build(job2)
 b3 = build(job3)

 build(SendEmail, JOB1_ID : b1.id, JOB2_ID : b2.id, JOB3_ID : b3.id)


 On Tue, Sep 24, 2013 at 4:26 PM, Curtis Kline ckl...@evernote.com wrote:

 I think I have a pretty simple requirement for the build flow plugin and
 the editable email plugin, but I could use some help getting this working.

 In the build flow job I am kicking off some builds:

 build( job1 )
 build( job2 )
 build( job3 )




 Then I want to send some emails with links to build artifacts that have been 
 uploaded to S3, like this:


 http://somelink.amazonaws.com/bucket/job1-filename-234.apk

 http://somelink.amazonaws.com/bucket/job2-filename-168.apk

 http://somelink.amazonaws.com/bucket/job3-filename-852.apk




 Where 234 is the build number from job1, 168 is the build number from 
 job2, etc.


 So, what do I need to do in the DSL on the build flow plugin to grab the 
 build numbers so they can be used in the editable email?




 Thanks in advance for any assistance.


 Curtis


  --
 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.
 For more options, visit https://groups.google.com/groups/opt_out.




 --
 Website: http://earl-of-code.com

 --
 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.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: multi job report

2013-09-20 Thread Curtis Kline
I haven't tried this plugin, but it might be useful for you:

https://wiki.jenkins-ci.org/display/JENKINS/Simple+Parameterized+Builds+Report+plugin

Curtis Kline
Evernote Corp.
Redwood City, CA



On Fri, Sep 20, 2013 at 7:17 AM, Tânia Magalhães
taniamagalh...@gmail.comwrote:

 Any ideas on how to have a report for multi job builds? A report or
 something that shows at once the results of all down streaming jobs?

 If I have a multi job named A with the following configuration
 job B
 job D
 job E
 job C

 When the build for A ends, to get the information from the builds for all
 down streaming jobs, I have to
 click at console output for A
 click the link for the build of job B
 click the link for the build of job D
 click the link for the build of job E
 click the link for the build of job C

 It would be great to have something that shows everything at the same time.

 Thanks!!!

 --
 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.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.