Re: scp before ssh on Jenkins

2013-12-10 Thread bala nageswar Chadalavada
thanks richard


On Tue, Dec 10, 2013 at 5:02 PM, Richard Bywater  wrote:

> You probably want
> https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin
>
> Richard.
>
>
> On Wed, Dec 11, 2013 at 12:29 AM, bala nageswar Chadalavada <
> baluch...@gmail.com> wrote:
>
>> Please let me know if we have any option we can do SCP before SSH Plugin
>>
>> thanks
>>
>> --
>> Bala.ch
>>
>> --
>> 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.
>



-- 
Bala.ch

-- 
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: UnmodifiableList while trying to programmactically add a Builder to a Job

2013-12-10 Thread Steve Maring
Thank you Daniel.  That worked perfectly.

Now I'm trying to figure out how to add a BooleanParameterDefinition and a
single step conditional builder, keying off that boolean, to execute the
shell script.


On Tue, Dec 10, 2013 at 2:35 PM, Daniel Beck  wrote:

> Use getBuildersList instead. The following works for me in the Script
> Console:
>
> def i = Jenkins.instance.getItemByFullName("foo") // might be
> different from yours
> def l = i.buildersList
> def oldBuilders = l.toList()
> l.clear()
> l.add(new hudson.tasks.Shell("echo 'Hello World'"))
> l.addAll(oldBuilders)
> i.save()
>
> On 10.12.2013, at 19:56, Steve Maring  wrote:
>
> > I have hundreds of Jobs that I would like to programmatically add an
> initial build step to using the Build Flow Plugin
> >
> > When I try something like this ...
> >
> > String jobName = "MY_JOB";
> >   List topLevelItems =
> Jenkins.getInstance().getAllItems(TopLevelItem.class);
> >   Job job;
> >   Iterator topLevelItemsIterator =
> topLevelItems.iterator();
> >   while (topLevelItemsIterator.hasNext()) {
> >   TopLevelItem topLevelItem = topLevelItemsIterator.next();
> >   Collection jobs = topLevelItem.getAllJobs();
> >   job = (jobs.toArray())[0];
> >   if (job.getName().equals(jobName)) {
> >   break;
> >   } else {
> >   job = null;
> >   }
> >   }
> >   FreeStyleProject project = (FreeStyleProject) job;
> >   List builders = project.getBuilders();
> >   Shell propertyVersionsCommand = new Shell("echo 'Hello World'");
> >   builders.add(0, propertyVersionsCommand);
> >
> >
> > I get ...
> >
> > ERROR: Failed to run DSL Script
> >
> > java.lang.UnsupportedOperationException
> >
> >   at
> java.util.Collections$UnmodifiableList.add(Collections.java:1216)
> >
> >   at java_util_List$add$0.call(Unknown Source)
> >   at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
> >   at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
> >   at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
> >   at Script1.setPropertyVersions(Script1.groovy:227)
> >   at Script1$setPropertyVersions.callCurrent(Unknown Source)
> >   at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
> >   at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
> >   at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
> >   at Script1.run(Script1.groovy:193)
> >   at Script1$run.call(Unknown Source)
> >   at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
> >   at Script1$run.call(Unknown Source)
> >   at
> com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:82)
> >
> >
> >
> > Under "Project-based Matrix Authorization Strategy" I've confirmed that
> I have EVERY perm possible checked there.
> >
> > What am I missing?
> >
> > -Steve
> > Orlando, FL
> >
> > --
> > 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 a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/w4i_gpsbKKg/unsubscribe.
> To unsubscribe from this group and all its topics, 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.


JUC 2014 (Bay Area): Taking your suggestions

2013-12-10 Thread Alyssa Tong
Hi All,

I know that JUC 2013 was only less than 2 months ago and i'm already
thinking about JUC 2014 :o)

I've received the following suggestions for JUC 2014:

   - Have an unconference
   - Have a individual track for hacking (perhaps 1/2 day be for beginners
   with tutoring from more advanced users, and the other half for more
   advanced users)
   - Panel discussion

I'd like to get feedback from the community as to what you feel would be
helpful to have at JUC 2014.  Pls note that due to budget, we will need to
keep the conference to a 1 day event, unless a sponsor is willing to step
up to offer an additional venue for day 2, that's if we decide 2 days is
needed.

So feedback is needed for the following:

   - what would you like to see at JUC 2014
   - If we have an unconference, what categories would you like to see?
   - suggestions for swag. Should we continue with tshirts or offer
   something else?
   - suggestions for venue(s)
   - If your company has a conference room to host a day for hackathon, pls
   let me know.

We strive to improve the JUC experience and offer value to the Jenkins
community. Your feedback and input is greatly appreciated.

We will discuss this topic at tomorrow's IRC meeting, pls join us.

regards,
alyssa

-- 
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: UnmodifiableList while trying to programmactically add a Builder to a Job

2013-12-10 Thread Daniel Beck
Use getBuildersList instead. The following works for me in the Script Console:

def i = Jenkins.instance.getItemByFullName("foo") // might be different 
from yours
def l = i.buildersList
def oldBuilders = l.toList()
l.clear()
l.add(new hudson.tasks.Shell("echo 'Hello World'"))
l.addAll(oldBuilders)
i.save()

On 10.12.2013, at 19:56, Steve Maring  wrote:

> I have hundreds of Jobs that I would like to programmatically add an initial 
> build step to using the Build Flow Plugin
> 
> When I try something like this ...
> 
> String jobName = "MY_JOB";
>   List topLevelItems = 
> Jenkins.getInstance().getAllItems(TopLevelItem.class);
>   Job job;
>   Iterator topLevelItemsIterator = topLevelItems.iterator();
>   while (topLevelItemsIterator.hasNext()) {
>   TopLevelItem topLevelItem = topLevelItemsIterator.next();
>   Collection jobs = topLevelItem.getAllJobs();
>   job = (jobs.toArray())[0];
>   if (job.getName().equals(jobName)) {
>   break;
>   } else {
>   job = null;
>   }
>   }
>   FreeStyleProject project = (FreeStyleProject) job;
>   List builders = project.getBuilders();
>   Shell propertyVersionsCommand = new Shell("echo 'Hello World'");
>   builders.add(0, propertyVersionsCommand);
> 
> 
> I get ...
> 
> ERROR: Failed to run DSL Script
> 
> java.lang.UnsupportedOperationException
> 
>   at java.util.Collections$UnmodifiableList.add(Collections.java:1216)
> 
>   at java_util_List$add$0.call(Unknown Source)
>   at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
>   at Script1.setPropertyVersions(Script1.groovy:227)
>   at Script1$setPropertyVersions.callCurrent(Unknown Source)
>   at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
>   at Script1.run(Script1.groovy:193)
>   at Script1$run.call(Unknown Source)
>   at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
>   at Script1$run.call(Unknown Source)
>   at 
> com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:82)
> 
> 
> 
> Under "Project-based Matrix Authorization Strategy" I've confirmed that I 
> have EVERY perm possible checked there.
> 
> What am I missing?
> 
> -Steve
> Orlando, FL
> 
> -- 
> 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.


Dedicated slave/node per build?

2013-12-10 Thread Tyler Gardner
I am trying to figure out the best way to implement this functionality.  I 
am using Jenkins and the AWS plugin to create ec2 instances on demand.
I am using a "buffer" of slaves, when a build is triggered Jenkins does the 
build on any available slave and create another "empty" slave for the 
buffer, this will keep build times down.
After a build gets pushed to a slave I need the slave to be dedicated to 
only that build, after X time that instance will shut down and the process 
needs to start over again.

Usage scenario, 
I have a php/mysql project managed in git, 5 devs working on the project, 
each dev will check out a branch from the project as needed, when they 
push, git hook calls jenkins to build a dedicated testing environment, 
email gets fired off to dev with environment ip after creation.
The dev's will be using the created environment for development and 
testing, if they change a line of code, push to git, trigger build on 
dedicated node.

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


UnmodifiableList while trying to programmactically add a Builder to a Job

2013-12-10 Thread Steve Maring
I have hundreds of Jobs that I would like to programmatically add an 
initial build step to using the Build Flow Plugin

When I try something like this ...

String jobName = "MY_JOB";
List topLevelItems = 
Jenkins.getInstance().getAllItems(TopLevelItem.class);
Job job;
Iterator topLevelItemsIterator = topLevelItems.iterator();
while (topLevelItemsIterator.hasNext()) {
TopLevelItem topLevelItem = topLevelItemsIterator.next();
Collection jobs = topLevelItem.getAllJobs();
job = (jobs.toArray())[0];
if (job.getName().equals(jobName)) {
break;
} else {
job = null;
}
}
FreeStyleProject project = (FreeStyleProject) job;
List builders = project.getBuilders();
Shell propertyVersionsCommand = new Shell("echo 'Hello World'");
builders.add(0, propertyVersionsCommand);


I get ...

ERROR: Failed to run DSL Scriptjava.lang.UnsupportedOperationException 

  at java.util.Collections$UnmodifiableList.add(Collections.java:1216) 

at java_util_List$add$0.call(Unknown Source)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at Script1.setPropertyVersions(Script1.groovy:227)
at Script1$setPropertyVersions.callCurrent(Unknown Source)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at Script1.run(Script1.groovy:193)
at Script1$run.call(Unknown Source)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at Script1$run.call(Unknown Source)
at 
com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:82)



Under "Project-based Matrix Authorization Strategy" I've confirmed that I have 
EVERY perm possible checked there.


What am I missing?


-Steve

Orlando, FL

-- 
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 access a private git repository on BitBucket.com

2013-12-10 Thread Eveline Dupas
Thanos,

after hours fighting with this, i read some people saying that this is a 
bug of git plugin 2.0 . So i tried to install an older version from this 
plugin and guess what

IT WORKS!

I don't need to create a credential on jenkins, i just create the ssh key 
and added it to my bitbucket account, did this plugin downgrade and it 
start to work! Your job just have to have the ssh url from the project, 
don't set the credentials.



Em sexta-feira, 6 de dezembro de 2013 17h00min21s UTC-2, Thanos Damn 
escreveu:
>
> Hello Eveline,
>
> After some reasearch i did, i came to the conclusion that the problem is 
> caused by jenkins and its git plugin itself. I couldn't make it work no 
> matter what i tried, so I configured my ssh keys in me home/.ssh folder and 
> switched to hudson. Now everything works correctly
>

-- 
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: scp before ssh on Jenkins

2013-12-10 Thread Richard Bywater
You probably want
https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin

Richard.


On Wed, Dec 11, 2013 at 12:29 AM, bala nageswar Chadalavada <
baluch...@gmail.com> wrote:

> Please let me know if we have any option we can do SCP before SSH Plugin
>
> thanks
>
> --
> Bala.ch
>
> --
> 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.


scp before ssh on Jenkins

2013-12-10 Thread bala nageswar Chadalavada
Please let me know if we have any option we can do SCP before SSH Plugin

thanks

-- 
Bala.ch

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


Pagination for "Build Execution Status"

2013-12-10 Thread Bharathi Ramalingam
Hi,
   In our production environment, almost ~50 Slaves are connected to 
the Master and run completely packed.  I'm wondering if there is any way we 
could paginate the "Build Execution Status" left pane.
Its really annoying to scroll the page all the way down to check the status 
of job execution.

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.


Re: Experiences with LTS vs Bleeding edge

2013-12-10 Thread Maciej Jaros
Probably the best approach is to use LTS, but wait a few weeks - just to 
check if there are any bugs discovered (you can check community ratings 
in changelog ). Also backup 
before update, and after update check if most crucial functions are 
stable (do some test builds). You can always revert to previous version 
if that won't work.


It works for us quite well :-).

...maybe one thing is not "working". Looking at issues list it's hard to 
figure out if certain bug was fixed in LTS or not. It's even harder to 
figure out if LTS version is affected by certain bugs or not.


Regards,
Nux.

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


how to stop subjob completely when one job in multijob phase failed

2013-12-10 Thread kvysh
 I have a multijob phase with two jobs. I added condition "Mark phase as
successful" when "Successful", But when one job fails it is not stopping
another job. Simply coming out and executing post-build actions. 

How can i stop remaining jobs completely when one job failed in same phase? 



--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/how-to-stop-subjob-completely-when-one-job-in-multijob-phase-failed-tp4683404.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.


Re: Can Jenkins with SVN plugin use UNC as workspace

2013-12-10 Thread Maciej Jaros

Scott Stewart (2013-12-10 00:57):
Id like a jenkins job to do a Subversion update to a UNC path on a 
windows server. this path is on a different domain and needs 
credentials.  Can Jenkins update to this if so how.


Using windows shares for SVN is not advised (see Subversion help or 
maybe Tortoise SVN help). But if you have to and you are able to do it 
from command line then it should be possible. You just need to test it 
from command line and then setup shell/bash step in Jenkins. But if you 
mean Windows credentials then it will probably not work (unless you will 
be able to save them during the test).


Regards,
Nux.

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


Request on jenkins error

2013-12-10 Thread bala nageswar Chadalavada
Dear team

i am getting status as Dead in the wheni fire a build

verisoni am using was 1.494

please let me know the root cause

tried restarting the Tomcat appl as well

thanks

-- 
Bala.ch

-- 
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: Experiences with LTS vs Bleeding edge

2013-12-10 Thread teilo
Issues won't get fixed as quickly as they need to be in a release for two weeks 
first.  That said you are less likely to discover new issues - with the 
exception of a new major lts version, however that has an amount of testing 
which latest never has.

If you are really concerned with bugs there are a few commercial vendors who 
will provide a support context, and I've been using one of them for a long time.

I moved to lts a long time ago when I no longer need all the features that went 
into every release and things have been generally much more stable since

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


Emma Coverage Column vs. JaCoCo plugin

2013-12-10 Thread Sebastian Schuberth
Hi,

I'm slightly confused about the sentence "This functionality is
included and superseeded by the JaCoCo Plugin now!" at [1]. I'm using
Emma in an Android project to get code coverage, and so far I've been
using the Emma Coverage Column plugin to show the coverage as
determined by the Jenkins Emma plugin in a view column. I've started
now to also use Roboletric and JaCoCo in the same project. Does the
sentence from above mean I do not need to install the Emma Coverage
Column plugin anymore because the JaCoCo plugin can display both
JaCoCo and Emma coverage in a view column? At least in a quick test it
did not work like this.

I've also filed an issue with a request for clarification at [2], but
so far no one replied.

Thanks for any insights.

[1] https://wiki.jenkins-ci.org/display/JENKINS/Emma+Coverage+Column
[2] https://issues.jenkins-ci.org/browse/JENKINS-20926

-- 
Sebastian Schuberth

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