Jenkins all changes number

2016-10-10 Thread Axl Kersillian
Greetings, 

I'm new here and I'd like to ask if you guys have encounter about this. If 
I click all changes (number2), it shows random number and letter. and if I 
click recent changes (number), it show normal number.

is these normal? or not? if not, how can i change it to numbers like recent 
changes

-- 
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/5d050443-1be7-4a9d-a648-9e82cb538d5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline - read artifact into node?

2016-10-10 Thread Sverre Moe
Stash it
stash includes: 'file.ext', name: 'file'

Then later do unstash 'file'

mandag 10. oktober 2016 20.11.39 UTC+2 skrev Jonathan Hodgson følgende:
>
> Hi,
>
> My pipelne starts with code on the master that creates a file, which I 
> artifact.
>
> I need ti use that file in nodes running on the slaves.
>
> How do I do that?
>

-- 
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/2ce7b57c-72fb-40cc-8443-bffbcf5f0ef8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


After Upgrading to Jenkins 2.0 and AWS EC2 plugin 1.35, Agents are not getting terminated after idle termination period of 30 minutes.

2016-10-10 Thread Vijayender Madura
Hello, 

I'm posting to see if there are others out there who may have faced the 
same issue:

I've set the idle termination time to 30 minutes and updated the log level 
to FINE for a new logger hudson.plugins.ec2 in Manage Jenkins --> System 
Log --> New logger.
I could not find any messages even after 30 minutes of Slave Inactivity: 

I'm looking for this INFO message to be printed 
: 
https://github.com/jenkinsci/ec2-plugin/blob/master/src/main/java/hudson/plugins/ec2/EC2RetentionStrategy.java#L121-L123
However, execution never reaches this line of code and Agents never get 
terminated. Can someone please point me in the right direction to 
investigate this issue ? 



Thanks for your help.
Regards,
Vijay

-- 
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/c65e4cef-0442-49db-bbd7-25604c7ea342%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reverse Proxy Auth Plugin - LDAP troubles - 404 error

2016-10-10 Thread Dunnigan, Terrence J
Hi all,

I'm using Jenkins 1.625.3 and I'm trying to configure the Reverse Proxy Auth 
Plugin (1.5) with my LDAP information and encountering issues. When I use the 
same values to configure pure LDAP, it works fine.

However when I configure the Reverse Proxy Auth Plugin I encounter errors as 
soon as I specify an LDAP hostname. It appears the Reverse Proxy Plugin is 
trying to verify the LDAP server name using this url:

${rootURL}/securityRealms/LDAPSecurityRealm/serverCheck?field=server&server='+encodeURIComponent(this.value)+'&managerDN='+encodeURIComponent(this.form.elements['managerDN'].value)+'&managerPassword='+encodeURIComponent(this.form.elements['managerPassword'].value)

When I enter this URL manually I get a 404 error, which is the same error that 
the plugin gives me. (I get the same error if I use my proxy name or my actual 
hostname for $rootURL)

Any thoughts?

Thanks,

Terry

-- 
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/ad0b0a4e2a2b43d68dc9f797d5e7f740%40XCH15-05-11.nw.nos.boeing.com.
For more options, visit https://groups.google.com/d/optout.


RE: Unable to download LTS for windows

2016-10-10 Thread Jason Pyeron
> -Original Message-
> From: eric wood
> Sent: Monday, October 10, 2016 15:00
> To: Jenkins Users
> Subject: Unable to download LTS for windows
> 
> The mirror does not seem to be working on this site.  I can 
> download the latest windows installer, but I would like to 
> get the LTS.  Any idea why it is not functional?

I had to do some url hacking.

As the latest is downloading, copy the url and change the version number.

2.19 works, 2.19.0 is a zero byte file... 

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


Unable to download LTS for windows

2016-10-10 Thread eric wood
The mirror does not seem to be working on this site.  I can download the 
latest windows installer, but I would like to get the LTS.  Any idea why it 
is not functional?

-- 
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/9e41a72c-e413-454a-83ce-7a6cf93fa1f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


pipeline - read artifact into node?

2016-10-10 Thread Jonathan Hodgson
Hi,

My pipelne starts with code on the master that creates a file, which I 
artifact.

I need ti use that file in nodes running on the slaves.

How do I do that?

-- 
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/65684c97-13a2-402b-bbd9-28c61cb9be4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


IMMD NEED !! Sr.Java/J2EE Developer/ Software - Salt Lake City, UT

2016-10-10 Thread Mr Akky
Hi ,
Hope all is well..

I have an exciting new opportunity that I wanted to share with you and your
network. Our top client, located in the (*Salt Lake City, UT*) is currently
seeking a (*Sr.Java/J2EE Developer/ Software*) resource to join their
organization. I have included a complete job description below in case you
or someone you know might be interested in learning more.




*Job Role: Sr.Java/J2EE Developer/ SoftwareLocation: Salt Lake City,
UTDuration: 6+ Months*
*Note: Need GC, USC Only !!*

Security experience mandatory
Java background required but focus should be on security of Web application
security.
This resource will do most work on back end java security, but will do some
analysis on front end to track vulnerabilities.


*WEB SECURITY EXPERIENCE IS MANDATORY.*What are the top 5-10
responsibilities for this position? (Please be detailed as to what the
candidate is expected to do or complete on a daily basis)
Run/schedule security scans,
Security vulnerability remediation,
Design and refactoring solutions in an agile environment,
Researching latest vulnerabilities,
Managing security backlog and schedules,
Team wide security communication

What software tools/skills are needed to perform these daily
responsibilities?
Foritify/SCAR (static code analysis), Whitehat Sentinel, Java, Oracle, JSP,
SQL


*What skills/attributes are a must have? *4-5 years’ experience in Java/JSP
J2EE development
2+ years’ experience developing external-facing secure Web applications
2+ years’ experience HTML, CSS & JavaScript
3+ years SQL experience.
2+ years software architecture experience
Excellent communication/collaboration skills
Highly accountable and self-motivated
Healthcare Industry knowledge/experience


*What skills/attributes are nice to have? *Unit Testing
Scrum or other Agile software development experience
Documentation Skills


*Best Regards,Akky - Recruiter*

*Cognizant Technologies* | Web: www.cognizantechnologies.com
1431 Opus Pl, Suite 110, Downers Grove, IL -  60515
Direct: (331) 481-6635 | Email: a...@cognizantechnologies.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CACSq6iKpBGGXpN9iQZb8tZn%2B3Y4iL%3DC6JP-dtE9M%3DHRUJGEm2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Locked out of Jenkins

2016-10-10 Thread Sam K
I have been in this situation before, and have learnt a lesson since then 
never to close the window and never to use 'save' but use 'apply' instead, 
use a incognito window and make sure I still am able to login before 
closing the main window.

That said, how about installing another version of Jenkins on another 
computer, use that config.xml, and try to restart jenkins?  Then slowly 
make the changes that you had previously.  You could even check the 
differences between the two and find the culprit. Sorry, that is not the 
best answer you were expecting but something to get by. 

On Monday, October 10, 2016 at 1:18:44 AM UTC-7, Levente Barabas wrote:
>
> Hello,
>
> After some plugin updates I locked myself out of Jenkins.
> I tried modifying the security options from the config.xml file as 
> discussed on other forums but unfortunately it does not work.
> The error message is the following:
>
> hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: 
> java.io.IOException: Unable to read D:\jenkins\config.xml
> at hudson.WebAppMain$3.run(WebAppMain.java:244)
> Caused by: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: 
> Unable to read D:\jenkins\config.xml
> at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
> at jenkins.InitReactorRunner.run(InitReactorRunner.java:45)
> at jenkins.model.Jenkins.executeReactor(Jenkins.java:1009)
> at jenkins.model.Jenkins.(Jenkins.java:877)
> at hudson.model.Hudson.(Hudson.java:85)
> at hudson.model.Hudson.(Hudson.java:81)
> at hudson.WebAppMain$3.run(WebAppMain.java:227)
> Caused by: java.io.IOException: Unable to read D:\jenkins\config.xml
> at hudson.XmlFile.unmarshal(XmlFile.java:165)
> at jenkins.model.Jenkins.loadConfig(Jenkins.java:2785)
> at jenkins.model.Jenkins.access$700(Jenkins.java:324)
> at jenkins.model.Jenkins$16.run(Jenkins.java:2803)
> at 
> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
> at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
> at jenkins.model.Jenkins$7.runTask(Jenkins.java:998)
> at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
> at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: jenkins.util.xstream.CriticalXStreamException: 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm : 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm
>  Debugging information 
> message : 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm
> cause-exception : 
> com.thoughtworks.xstream.mapper.CannotResolveClassException
> cause-message   : 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm
> class   : hudson.model.Hudson
> required-type   : hudson.model.Hudson
> converter-type  : hudson.util.RobustReflectionConverter
> path: /hudson/securityRealm
> line number : 171
> version : not available
> ---
> at 
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:356)
> at 
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
> at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
> at 
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
> at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
> at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
> at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
> at 
> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
> at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
> at hudson.util.XStream2.unmarshal(XStream2.java:114)
> at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
> at hudson.XmlFile.unmarshal(XmlFile.java:163)
> ... 11 more
> Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm
> at 
> com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
> at 
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at 
> com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
> at 
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at 
> com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
> at 
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at 
> com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)

IMMD NEED !! Project Manager - Minnetonka, MN-(Locals Only)

2016-10-10 Thread Mr Akky
 Hi ,
Hope all is well..

I have an exciting new opportunity that I wanted to share with you and your
network. Our top client, located in the (Minnetonka, MN) is currently
seeking a (Project Manager) resource to join their organization. I have
included a complete job description below in case you or someone you know
might be interested in learning more.



*Job Role: Project Manager Location: Minnetonka, MNDuration: 6+ Months *

*Note: Need Local Candidates Only !!*

*Job Description: *
Positions in this function are involved in the definition, management, and
implementation of significant technology focused projects.
Focuses on IT projects, not for use as project management in non-IT roles.
Positions are business specialists and technology generalists that manage,
direct and interface with business clients.
Align technology solutions with business strategies, working primarily with
senior management.
Proactively identify opportunities, conduct analyses, needs assessments,
cost/benefit assessments and broker other IT services.
Includes those involved in release management.
Minimum Education Requirement - Associates Degree




*Best Regards,Akky - RecruiterCognizant Technologies *| Web:
www.cognizantechnologies.com
1431 Opus Pl, Suite 110, Downers Grove, IL -  60515
Direct: (331) 481-6635 | Email: a...@cognizantechnologies.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CACSq6iK3M2mJM5R7zhVxfPEi3i9HiWFvfLLjc%3DekzLsN%2Bf-mbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help with invoking scripts via CURL

2016-10-10 Thread Naveen
Victor, Thank you! That didn't work. When I replace the password with token
it is working,not with the password.

On Mon, Oct 10, 2016 at 8:58 AM Victor Martinez <
victormartinezru...@gmail.com> wrote:

> I normally use:
>
> instance=http://192.168.99.100:31419
>
> 
> USER=
> PASS=Y
> curl --silent --user "${USER}:${PASS}" --data-urlencode
> "script=$(<./whatever.groovy)" ${instance}/scriptText
>
> Cheers
>
>
> On Monday, 10 October 2016 01:35:55 UTC+1, Naveen Srinivasan wrote:
>
> Hi,
>
>   I am trying to automate Jenkins fully using helm and kubernetes
> https://github.com/kubernetes/charts/tree/master/stable/jenkins . By
> doing this the admin password is available via kubernetes   secretes.  The
> goal is to automate bringing up jenkins without logging into the server
> manually. As part of that I would like to execute scripts pointing to
> jenkins server.
>
>
> When I try to use admin with password
> curl --data-urlencode "script=$(<./test.groovy)" http://admin:cEunYtfPfP@
> http://192.168.99.100:31419/scriptText
>
>
> I am getting an exception
> hudson.security.AccessDeniedException2: anonymous is missing the
> Overall/Read permission
> at hudson.security.ACL.checkPermission(ACL.java:65)
> at hudson.model.Node.checkPermission(Node.java:464)
> at jenkins.model.Jenkins.getTarget(Jenkins.java:4426)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:674)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
>
>
>  Where as If I login into the server and get the API token for admin then
> the same code works if i use the API token.
> curl --data-urlencode "script=$(<./test.groovy)"
> http://admin:b8d84d283000b5ce7b446a756f820352@192.168.99.100:31419/scriptText
>
> What am I doing wrong? Is this possible?  Like I had mentioned I would
> like to use automate everything without ever logging into the server.
>
> Thank you!
> Naveen
>
>
> 0 New
> Reply to all
>
> --
> 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/M3z5AmhXN1g/unsubscribe.
> To unsubscribe from this group and all its topics, 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/26b92dfa-95eb-45b8-bb0b-a4d076151b9e%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/CAEDdFggHXLx1o9Z%3DBozmN88cA_p2ZyOFpe-vFam1iePcp0oZmw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins CodePipeline plugin keeping Admin U/P in AWS access/secret keys fields, rather than blank

2016-10-10 Thread Go Mezant
Hello,

Trying to set up Jenkins on an EC2 with Code Pipeline. Using Jenkins v2.24

The Plugin has a captions that says: 

*If keys are not specified, *the plugin will use the default credentials 
providers and pull from one of: Environment variables, credentials profile, 
or IAM instance role. The latter is recommended if running on an EC2 
instance.

I have set up an Amazon IAM User/Role and the Instance Profile so that 
Jenkins can pick up that key automatically. 

But when I go to Jenkins\Configure for the plugin, and I clear the Jenkins 
Admin user and password from the 
AWS Access Key and AWS Secret Key, then I save, the U/P automatically come 
back.

Being new to Jenkins, I'm not sure if I'm missing a setting somewhere else.

How can I get Jenkins to not automatically use the Jenkins Admin User and 
Password so I can leave the AWS Access Key and AWS Secret Key fields blank,
thus allowing Jenkins to pick up the keys from the profile instead??

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/007bfbcd-3bae-4506-8aa3-6a066a2c1c40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help with invoking scripts via CURL

2016-10-10 Thread Victor Martinez
I normally use:

instance=http://192.168.99.100:31419

USER=
PASS=Y
curl --silent --user "${USER}:${PASS}" --data-urlencode 
"script=$(<./whatever.groovy)" ${instance}/scriptText

Cheers

On Monday, 10 October 2016 01:35:55 UTC+1, Naveen Srinivasan wrote:
>
> Hi, 
>
>   I am trying to automate Jenkins fully using helm and kubernetes 
> https://github.com/kubernetes/charts/tree/master/stable/jenkins . By 
> doing this the admin password is available via kubernetes   secretes.  The 
> goal is to automate bringing up jenkins without logging into the server 
> manually. As part of that I would like to execute scripts pointing to 
> jenkins server.
>
>
> When I try to use admin with password 
> curl --data-urlencode "script=$(<./test.groovy)" http://admin:cEunYtfPfP@
> http://192.168.99.100:31419/scriptText
>
>
> I am getting an exception
> hudson.security.AccessDeniedException2: anonymous is missing the 
> Overall/Read permission
> at hudson.security.ACL.checkPermission(ACL.java:65)
> at hudson.model.Node.checkPermission(Node.java:464)
> at jenkins.model.Jenkins.getTarget(Jenkins.java:4426)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:674)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
>
>
>  Where as If I login into the server and get the API token for admin then 
> the same code works if i use the API token.
> curl --data-urlencode "script=$(<./test.groovy)" 
> http://admin:b8d84d283000b5ce7b446a756f820352@192.168.99.100:31419/scriptText
>
> What am I doing wrong? Is this possible?  Like I had mentioned I would 
> like to use automate everything without ever logging into the server.
>
> Thank you!
> Naveen
>  
>
> 0 New
> Reply to all
>

-- 
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/26b92dfa-95eb-45b8-bb0b-a4d076151b9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Locked out of Jenkins

2016-10-10 Thread Jennifer Hofmeister
You could search your Jenkins home directory for logs, e.g. 
$JENKINS_HOME/monitoring or maybe /logs.


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Levente Barabas
Sent: Montag, 10. Oktober 2016 12:55
To: Jenkins Users
Cc: m...@beckweb.net
Subject: Re: Locked out of Jenkins


Do you have any suggestion on how may I check this or enable it in case it is 
being disabled during startup?
   Thank you for your time!
--
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/8600a518-89ce-457f-a9c0-b72d1e65d4ef%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/CAA587D532C45541B62417404F1D22030E890CEB%40you-exch1.younicos.local.
For more options, visit https://groups.google.com/d/optout.


Is there a Jenkins REST API call for get the list of jobs that happened between a time span?

2016-10-10 Thread Daniel Sagaya Raj
Hi Everyone, 

Is there a Jenkins REST API call for get the list of jobs that happened 
between two dates or time span. ?

With Regards:
Daniel Sagayaraj

-- 
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/f4477980-b0fd-4281-9a93-3074f10252df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use classes in pipeline script?

2016-10-10 Thread Sven Finsterwalder
I have a similar problem with an enum class. 
Has anyone a solution or a hint to solve that issue.

Am Mittwoch, 8. Juni 2016 22:06:46 UTC+2 schrieb Lars Meynberg:
>
> I'm aware that there is the possibility of 
> the workflow-cps-global-lib-plugin but I like to now if it's possible 
> without it or is that another groovy restriction for pipeline scripts like 
> Closures?
>
> Am Mittwoch, 8. Juni 2016 12:08:37 UTC+2 schrieb Lars Meynberg:
>>
>> We want to group some information in an object rather then have multiple 
>> variables in the main pipeline script. 
>> I tried to create a class (First Java then Groovy) but every time when I 
>> try to init it in the script I got following error:
>>
>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
>> failed:
>> WorkflowScript: 1: unable to resolve class classes.BuildEnvironment
>>  @ line 1, column 1.
>>import classes.BuildEnvironment
>>
>> The folder looks like this
>> simple_pipeline.groovy
>> external.groovy
>> classes/BuildEnvironment.groovy
>>
>> The pipeline setup is attached.
>>
>> Maybe someone can point out what I'm doing wrong.
>>
>

-- 
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/2e3b1860-f750-4288-b31f-ecdcef8494cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Locked out of Jenkins

2016-10-10 Thread Levente Barabas


> Do you have any suggestion on how may I check this or enable it in case it 
> is being disabled during startup?
>
   Thank you for your time! 

-- 
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/8600a518-89ce-457f-a9c0-b72d1e65d4ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Initial steps with Jenkins

2016-10-10 Thread amol malokar
Please go through, Jenkins pipeline steps documentation.

Being heavily developed right now still would be best choice continuous
integration & to processes .

On Oct 7, 2016 5:06 PM,  wrote:

Hi!
I apologize for asking this extremely stupid newbie question, but currently
I'm a bit stuck.
I've been looking on the Internet for an answer, but either this is so
simple that anyone can do it (except me) or I've been asking the wrong
questions :-(

I've become responsible for setting up a Jenkins server to to build tests
and other stuff for our project.

We have several gits that we download via a manifest file using repo.

I've successfully set up the connection between Gerrit and Jenkins so that
Jenkins triggers a build when a change is uploaded and by using the repo
scm, I'm able to download the code as well.

Sadly, the patches that trigger the build are not downloaded.

All documentation that I've found refer to triggering on a single git and
to use the git scm.

Could anyone please point me in the right direction on how to get this
setup working? It really shouldn't be anything difficult since many people
and large companies use this approach already with Android being a prime
example.

BRs,
Joachim Holst

-- 
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/caf46b60-fc66-40ff-92df-01e39aeb0919%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/CAKO2pRnuLHkKPacZPqtQCZXGhy_utx9EWn%2BQPZHObj%3DNe6EjRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Locked out of Jenkins

2016-10-10 Thread Daniel Beck

> On 10.10.2016, at 12:37, Levente Barabas  wrote:
> 
> I just checked and it is not uninstalled.

Then it may be disabled, or something else during startup forces it to become 
disabled. In both cases, it will be logged.

-- 
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/AE3A8F6F-8DAD-4029-84B6-6458A9D7A061%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Locked out of Jenkins

2016-10-10 Thread Levente Barabas
I just checked and it is not uninstalled.
On Monday, October 10, 2016 at 1:24:05 PM UTC+3, Daniel Beck wrote:
>
> You likely disabled or uninstalled the Active Directory Plugin while it 
> was your instance's security realm. 
>
> https://wiki.jenkins-ci.org/display/JENKINS/Disable+security 
>
> > On 10.10.2016, at 10:18, Levente Barabas  > wrote: 
> > 
> > Hello, 
> > 
> > After some plugin updates I locked myself out of Jenkins. 
> > I tried modifying the security options from the config.xml file as 
> discussed on other forums but unfortunately it does not work. 
> > The error message is the following: 
> > 
> > hudson.util.HudsonFailedToLoad: 
> org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to 
> read D:\jenkins\config.xml 
> > at hudson.WebAppMain$3.run(WebAppMain.java:244) 
> > Caused by: org.jvnet.hudson.reactor.ReactorException: 
> java.io.IOException: Unable to read D:\jenkins\config.xml 
> > at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269) 
> > at jenkins.InitReactorRunner.run(InitReactorRunner.java:45) 
> > at jenkins.model.Jenkins.executeReactor(Jenkins.java:1009) 
> > at jenkins.model.Jenkins.(Jenkins.java:877) 
> > at hudson.model.Hudson.(Hudson.java:85) 
> > at hudson.model.Hudson.(Hudson.java:81) 
> > at hudson.WebAppMain$3.run(WebAppMain.java:227) 
> > Caused by: java.io.IOException: Unable to read D:\jenkins\config.xml 
> > at hudson.XmlFile.unmarshal(XmlFile.java:165) 
> > at jenkins.model.Jenkins.loadConfig(Jenkins.java:2785) 
> > at jenkins.model.Jenkins.access$700(Jenkins.java:324) 
> > at jenkins.model.Jenkins$16.run(Jenkins.java:2803) 
> > at 
> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
>  
>
> > at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) 
> > at jenkins.model.Jenkins$7.runTask(Jenkins.java:998) 
> > at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) 
> > at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) 
> > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown 
> Source) 
> > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown 
> Source) 
> > at java.lang.Thread.run(Unknown Source) 
> > Caused by: jenkins.util.xstream.CriticalXStreamException: 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm : 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm 
> >  Debugging information  
> > message : 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm 
> > cause-exception : 
> com.thoughtworks.xstream.mapper.CannotResolveClassException 
> > cause-message   : 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm 
> > class   : hudson.model.Hudson 
> > required-type   : hudson.model.Hudson 
> > converter-type  : hudson.util.RobustReflectionConverter 
> > path: /hudson/securityRealm 
> > line number : 171 
> > version : not available 
> > --- 
> > at 
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:356)
>  
>
> > at 
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
>  
>
> > at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
>  
>
> > at 
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
>  
>
> > at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
>  
>
> > at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
>  
>
> > at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
>  
>
> > at 
> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
>  
>
> > at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189) 
> > at hudson.util.XStream2.unmarshal(XStream2.java:114) 
> > at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173) 
> > at hudson.XmlFile.unmarshal(XmlFile.java:163) 
> > ... 11 more 
> > Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm 
> > at 
> com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
>  
>
> > at 
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>  
>
> > at 
> com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
>  
>
> > at 
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>  
>
> > at 
> com.thoughtworks.xstream.mapper.Pac

Re: Locked out of Jenkins

2016-10-10 Thread Daniel Beck
You likely disabled or uninstalled the Active Directory Plugin while it was 
your instance's security realm.

https://wiki.jenkins-ci.org/display/JENKINS/Disable+security

> On 10.10.2016, at 10:18, Levente Barabas  wrote:
> 
> Hello,
> 
> After some plugin updates I locked myself out of Jenkins.
> I tried modifying the security options from the config.xml file as discussed 
> on other forums but unfortunately it does not work.
> The error message is the following:
> 
> hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: 
> java.io.IOException: Unable to read D:\jenkins\config.xml
>   at hudson.WebAppMain$3.run(WebAppMain.java:244)
> Caused by: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: 
> Unable to read D:\jenkins\config.xml
>   at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
>   at jenkins.InitReactorRunner.run(InitReactorRunner.java:45)
>   at jenkins.model.Jenkins.executeReactor(Jenkins.java:1009)
>   at jenkins.model.Jenkins.(Jenkins.java:877)
>   at hudson.model.Hudson.(Hudson.java:85)
>   at hudson.model.Hudson.(Hudson.java:81)
>   at hudson.WebAppMain$3.run(WebAppMain.java:227)
> Caused by: java.io.IOException: Unable to read D:\jenkins\config.xml
>   at hudson.XmlFile.unmarshal(XmlFile.java:165)
>   at jenkins.model.Jenkins.loadConfig(Jenkins.java:2785)
>   at jenkins.model.Jenkins.access$700(Jenkins.java:324)
>   at jenkins.model.Jenkins$16.run(Jenkins.java:2803)
>   at 
> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
>   at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
>   at jenkins.model.Jenkins$7.runTask(Jenkins.java:998)
>   at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
>   at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
>   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>   at java.lang.Thread.run(Unknown Source)
> Caused by: jenkins.util.xstream.CriticalXStreamException: 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm : 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm
>  Debugging information 
> message : 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm
> cause-exception : 
> com.thoughtworks.xstream.mapper.CannotResolveClassException
> cause-message   : 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm
> class   : hudson.model.Hudson
> required-type   : hudson.model.Hudson
> converter-type  : hudson.util.RobustReflectionConverter
> path: /hudson/securityRealm
> line number : 171
> version : not available
> ---
>   at 
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:356)
>   at 
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
>   at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
>   at 
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
>   at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
>   at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
>   at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
>   at 
> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
>   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
>   at hudson.util.XStream2.unmarshal(XStream2.java:114)
>   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
>   at hudson.XmlFile.unmarshal(XmlFile.java:163)
>   ... 11 more
> Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm
>   at 
> com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
>   at 
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>   at 
> com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
>   at 
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>   at 
> com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
>   at 
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>   at 
> com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
>   at 
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>   at 
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>   at 

Locked out of Jenkins

2016-10-10 Thread Levente Barabas
Hello,

After some plugin updates I locked myself out of Jenkins.
I tried modifying the security options from the config.xml file as 
discussed on other forums but unfortunately it does not work.
The error message is the following:

hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: 
java.io.IOException: Unable to read D:\jenkins\config.xml
at hudson.WebAppMain$3.run(WebAppMain.java:244)
Caused by: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: 
Unable to read D:\jenkins\config.xml
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:45)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:1009)
at jenkins.model.Jenkins.(Jenkins.java:877)
at hudson.model.Hudson.(Hudson.java:85)
at hudson.model.Hudson.(Hudson.java:81)
at hudson.WebAppMain$3.run(WebAppMain.java:227)
Caused by: java.io.IOException: Unable to read D:\jenkins\config.xml
at hudson.XmlFile.unmarshal(XmlFile.java:165)
at jenkins.model.Jenkins.loadConfig(Jenkins.java:2785)
at jenkins.model.Jenkins.access$700(Jenkins.java:324)
at jenkins.model.Jenkins$16.run(Jenkins.java:2803)
at 
org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:998)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: jenkins.util.xstream.CriticalXStreamException: 
hudson.plugins.active_directory.ActiveDirectorySecurityRealm : 
hudson.plugins.active_directory.ActiveDirectorySecurityRealm
 Debugging information 
message : 
hudson.plugins.active_directory.ActiveDirectorySecurityRealm
cause-exception : 
com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message   : 
hudson.plugins.active_directory.ActiveDirectorySecurityRealm
class   : hudson.model.Hudson
required-type   : hudson.model.Hudson
converter-type  : hudson.util.RobustReflectionConverter
path: /hudson/securityRealm
line number : 171
version : not available
---
at 
hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:356)
at 
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at 
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at 
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
at 
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
at hudson.util.XStream2.unmarshal(XStream2.java:114)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
at hudson.XmlFile.unmarshal(XmlFile.java:163)
... 11 more
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: 
hudson.plugins.active_directory.ActiveDirectorySecurityRealm
at 
com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
at 
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at 
com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
at 
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at 
com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
at 
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at 
com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
at 
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at 
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at 
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at 
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at 
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at 
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at 
com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
at 
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at 
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at 
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at 
com.thou

jenkins run Perform Maven Release are failed

2016-10-10 Thread Zhou Yulong
ENV:
jenkins  2.7.4 
git  2.7.0 
maven : 3.3.9 
JDK 1.8

source code -- github
maven project

we commit the maven project into github 
have pom file .

Operation:

Perform Maven Release on jenkins .

result : 
jenkins' workspacepom ' s version be upgrade .
but the pom not push into github.
the new tag be generated on github

*we want the pom be update and push into github*

-- 
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/852c119d-2710-4059-80c4-6ce647b7b8b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Initial steps with Jenkins

2016-10-10 Thread Joachim Holst
I used patchset created and draft published as triggers. I excluded Drafts,
Trivial rebase and No code change.
The trigger works perfectly (at least when I stopped using "**" for branch
name).

I finally managed to get the patchset downloaded as well using a script.
Not sure that is the correct way to do it though :-/

repo init -u ssh://{username}@gerrit.my.server:29418/{my_manifest} -b master
repo sync
repo download $GERRIT_PROJECT $GERRIT_CHANGE_NUMBER/$GERRIT_PATCHSET_NUMBER

BRs,
/Jocke!

Hälsningar/Best regards,

Joachim Holst
SW Architect

Ideon Science Park
Scheelevägen 27
223 63 LUND
Mobile: +46 703 45 99 77
E-mail:  jo...@mistbase.com 
Website:www.mistbase.com

Note: Privileged/Confidential information may be contained in this message
and may be subject to legal privilege. Access to this e-mail by anyone
other than the intended is unauthorised. If you are not the intended
recipient (or responsible for delivery of the message to such person), you
may not use, copy, distribute or deliver to anyone this message (or any
part of its contents ) or take any action in reliance on it. In such case,
you should destroy this message, and notify us immediately. If you have
received this email in error, please notify us immediately by e-mail or
telephone and delete the e-mail from any computer. If you or your employer
does not consent to internet e-mail messages of this kind, please notify us
immediately. All reasonable precautions have been taken to ensure no
viruses are present in this e-mail. As our company cannot accept
responsibility for any loss or damage arising from the use of this e-mail
or attachments we recommend that you subject these to your virus checking
procedures prior to use. The views, opinions, conclusions and other
informations expressed in this electronic mail are not given or endorsed by
the company unless otherwise indicated by an authorized representative
independent of this message.

On 9 October 2016 at 07:55, Baptiste Mathus  wrote:

> I guess you're using a freestyle job. What config did you put under the
> "Gerrit event" checkbox?
>
> Le 7 oct. 2016 11:06 AM,  a écrit :
>
>> Hi!
>> I apologize for asking this extremely stupid newbie question, but
>> currently I'm a bit stuck.
>> I've been looking on the Internet for an answer, but either this is so
>> simple that anyone can do it (except me) or I've been asking the wrong
>> questions :-(
>>
>> I've become responsible for setting up a Jenkins server to to build tests
>> and other stuff for our project.
>>
>> We have several gits that we download via a manifest file using repo.
>>
>> I've successfully set up the connection between Gerrit and Jenkins so
>> that Jenkins triggers a build when a change is uploaded and by using the
>> repo scm, I'm able to download the code as well.
>>
>> Sadly, the patches that trigger the build are not downloaded.
>>
>> All documentation that I've found refer to triggering on a single git and
>> to use the git scm.
>>
>> Could anyone please point me in the right direction on how to get this
>> setup working? It really shouldn't be anything difficult since many people
>> and large companies use this approach already with Android being a prime
>> example.
>>
>> BRs,
>> Joachim Holst
>>
>> --
>> 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/ms
>> gid/jenkinsci-users/caf46b60-fc66-40ff-92df-01e39aeb0919%40g
>> ooglegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/6xhdIZgb1T8/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CANWgJS6oeg%2B_jo6ddCsm%
> 3Db9eLi90BK5YhCZVfEEMZjruW65oqA%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/CAJdQoK3N0-Rvnu%2BDLK1Nx59jdL4YohsFTd%3