Re: Subversion push seems to fail

2012-04-03 Thread Fredrik Claesson
I have setup my Jenkins with AD-auth and have now gotten the SVN hook 
script to work. But I have the same problem as in this thread that my 
"wget" does not logon to Jenkins and I have to grant the anonymous user 
read access to the project for it to be able to pick up changes.

Is there a way to get wget to login to Jenkins when the hook script is run.

I am running Jenkins under Windows in the winstone container.

I am consider following the advice in another thread to setup an IIS as a 
proxy in front of Jenkins and "Delegate to servlet contain" to be able to 
get Single Signon through SSPI and perhaps this would also solve this 
problem.

/Fredrik

Den onsdagen den 11:e maj 2011 kl. 14:37:00 UTC+2 skrev flo87:
>
> I notice that this appends to me because the access rights given to 
> the notifyCommit process that triggered the build (for me, it was 
> anynonymous user) dont have any right to read any project), so it 
> never loop inside the projects list and do find any SCM to match the 
> notifyCommit. Hope I'm enough clear ;-) 
>
> On May 9, 4:11 pm, Sentoo  wrote: 
> > Hi there, 
> > 
> > we have a setup a project that is using ANT for its' builds, therefore 
> > we created a free-style project. Within that we configured subversion 
> > as SCM, initially with polling every 5 minutes. That worked. 
> > 
> > Now we are trying to change this to SVN push, via SVN commit hook. 
> > Currently this is not working. After what I take from the logs, it 
> > seems that we configured it correctly, but Jenkins does not recognize 
> > the freestyle project as subversion job. I get the following log 
> > entries, after the post-commit hook is fired: 
> > 
> > >> May 9, 2011 3:59:06 PM hudson.scm.SubversionRepositoryStatus 
> doNotifyCommit 
> > >> FINE: Change reported to Subversion repository 
> a0919590-65c4-11e0-9401-13e26efc52c6 on [antProject/trunk/Test/test.txt] 
> > >> May 9, 2011 3:59:06 PM hudson.scm.SubversionRepositoryStatus 
> doNotifyCommit 
> > >> WARNING: No subversion jobs found 
> > 
> > And yes, I have left the "Poll SCM" trigger checked. I have set it to 
> > "0 0 1 1 7", as something like this is suggested by the 
> > documentation ... 
> > 
> > And yes, we have updated to the latest and greatest version (currently 
> > 1.410). 
> > 
> > Whereas when I use the periodic pull, I get the following messages: 
> > 
> > >> INFO: Started Fingerprint cleanup 
> > >> May 9, 2011 3:45:15 PM hudson.model.FingerprintCleanupThread execute 
> > >> INFO: Cleaned up 0 records 
> > >> May 9, 2011 3:45:15 PM hudson.model.AsyncPeriodicWork$1 run 
> > >> INFO: Finished Fingerprint cleanup. 2 ms 
> > >> May 9, 2011 3:55:48 PM hudson.triggers.SCMTrigger$Runner run 
> > >> INFO: SCM changes detected in antProject. Triggering  #14 
> > >> May 9, 2011 3:57:12 PM hudson.model.Run run 
> > >> INFO: antProject #14 main build action completed: 
> > 
> > Ideas and suggestions are highly welcome :)



Build fails with maven site

2012-04-03 Thread Richard Frovarp
All of a sudden my builds have started to fail. I've tracked it down
to
the site goal being in build. If I move the goal to Post Steps, it
works
just fine. I get an error, but it isn't at all useful. This happens
with
Maven 2.2.1, 3.0.3, and 3.0.4. It just started today, builds from
yesterday are fine. This is happening with jobs that haven't had
anything change in months. I am a bit out of date with version for
Jenkins, but that wouldn't explain why this started happening all of
a
sudden. My guess is that it is the archiving action of calling the
site
goal in the Build section. Blowing away site and javadoc directories,
I
do get the site directory again on a build attempt, but not javadoc.
Copying the project configuration of a project with problems results
in
a successful build.

[JENKINS] Archiving site from /var/lib/jenkins/jobs/AD Institution
Groups/workspace/target/site to /var/lib/jenkins/jobs/AD Institution
Groups/site
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 36.248s
[INFO] Finished at: Tue Apr 03 18:47:20 CDT 2012
[INFO] Final Memory: 38M/366M
[INFO]

mavenExecutionResult exceptions not empty
message : Internal error: java.lang.NullPointerException
cause : null
Stack trace :
org.apache.maven.InternalErrorException: Internal error:
java.lang.NullPointerException
at
org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:
128)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
95)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:
183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:
161)


Re: git repository clone once

2012-04-03 Thread Albert Callarisa
Any update with this?

I solved temporarilly this issue just creating one folder with the project
code and all the configurations are a sym link to that folder, so all of
them will find code in their workspace. I would prefer something in jenkins
but I couldn't find how.
The ref works but clones for every configuration it's a valid walkarround
but I prefer to avoid it.

Thanks

On Thu, Mar 29, 2012 at 1:23 PM, Sami Tikka  wrote:

> Open the advanced settings under the job git configuration. There you will
> find a place to enter path local reference repository. That should make
> things faster for you and save a lot space.
>
> We have build slaves with smallish SSD disks, so we're very careful about
> disk space use. We have a clone off the git repo on each slave (updated
> nightly) and use the reference repo feature, so most of the repo space is
> shared and only what is new gets pulled over the network by clone.
>
> -- Sami
>
> Ido Ran  kirjoitti 27.3.2012 kello 14.02:
>
> I didn't try to --reference option, I will.
> I also understand that the repository will be clone to each job, in my
> case it's matrix job so it's even more clones.
> I hope someone will find a way.
>
> I'll post here if I'll manage to find a solution.
>
> Ido
>
> On Tue, Mar 27, 2012 at 12:45 PM, Albert Callarisa wrote:
>
>> I asked something similar recently but the reply didn't help me. Did you
>> try with the --reference option in git? I tried but didn't help
>> I'm still trying to figure out how to make it. I'm fine with a clone in
>> each computer, but once is cloned I would like to just pull from the same
>> place, but the workspace of the jobs is kind of random so it's fresh new
>> always...
>>
>>
>> On Tue, Mar 27, 2012 at 4:57 PM, Ido Ran  wrote:
>>
>>> Hi,
>>> We use Jenkins to build our applications which are stored in git
>>> repository.
>>> We have several different jobs for building different configuration and
>>> deployment of our applications.
>>> Currently each project pull it's own clone of the git repository from
>>> our central repository which takes about 7 minutes for clean build.
>>>
>>> We try to have single job that clone the remote repository and have all
>>> the other jobs pull from that repository but we fail to do it due to
>>> locking problems.
>>> Is it possible and should we persevere on that approach or is it better
>>> to let each job pull from the remote repository.
>>>
>>> Ido.
>>>
>>
>>
>>
>> --
>> Albert Callarisa Roca
>>
>
>


-- 
Albert Callarisa Roca


Build Publisher publishing results to multiple instances

2012-04-03 Thread Chris Johnston
Greetings,

Is it possible for the Build Publisher plugin to publish the records of a 
single job to multiple other Jenkins instances? If so, how might I do this?

Thanks,

Chris


Re: Maven Release plugin problem...

2012-04-03 Thread Gábor Garami
From: http://maven.apache.org/pom.html


   - *connection*, *developerConnection*: The two connection elements
   convey to how one is to connect to the version control system through
   Maven. Where connection requires read access for Maven to be able to find
   the source code (for example, an update), developerConnection requires a
   connection that will give write access. The Maven project has spawned
   another project named Maven SCM, which creates a common API for any SCMs
   that wish to implement it. The most popular are CVS and Subversion,
   however, there is a growing list of other supported
SCMs.
   All SCM connections are made through a common URL structure.

   scm:[provider]:[provider_specific]

   Where provider is the type of SCM system. For example, connecting to a
   CVS repository may look like this:

   scm:cvs:pserver:127.0.0.1:/cvs/root:my-project


Please find the quote and read the text before and after it.
Garami Gábor
E-mail: gabor.gar...@hron.me
Tel: +36 20 235 9621
MSN: h...@vipmail.hu
Skype: hron84



On Wed, Apr 4, 2012 at 1:39 AM, Jeff  wrote:

> We have a few jobs now building regularly and now I want to release them.
> I installed the release plugin which when enabled, gives me a "Perform
> Maven Release" link on the job summary page.
>
> I went into the job config and selected "Preselect 'specify SCM
> login/password" option.
>
> When I click the "Perform Maven Release" link and enter my SCM
> information, I get an error:
>
> mavenExecutionResult exceptions not empty
> message : Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on
> project Shared: Missing required setting: scm connection or
> developerConnection must be specified.
> cause : Missing required setting: scm connection or developerConnection
> must be specified.
>
> This being my first attempt and configuring a Maven Release, what am I
> missing?
>
> --
> Jeff Vincent
> predato...@gmail.com
> See my LinkedIn profile at:
> http://www.linkedin.com/in/rjeffreyvincent
> I ♥ DropBox  !!
>
>


Re: API query to load from disk?

2012-04-03 Thread Gábor Garami
Do the reconfiguration via API and you will not need reload Jenkins. I
think there is a JSON API for add/modify a job.


Garami Gábor
E-mail: gabor.gar...@hron.me
Tel: +36 20 235 9621
MSN: h...@vipmail.hu
Skype: hron84



On Tue, Apr 3, 2012 at 11:49 PM, Andrew Melo  wrote:

> Hey all,
>
> We keep two copies of each job (one is for SCM-triggered builds and the
> other is for dev-triggered "try" builds), and to make sure things stay in
> sync, we have a cronjob that periodically copies config.xml from one build
> to another. Is there an API call to tell jenkins to reload the
> configuration from disc (a command line option would work as well). I tried
> using /etc/init.d/jenkins reload, but it appears that actually shuts down
> the master. jenkinshost/manage/api doesn't appear to exist either.
>
> Thanks,
> Andrew
>
> --
> --
> Andrew Melo
>
>


Maven Release plugin problem...

2012-04-03 Thread Jeff
We have a few jobs now building regularly and now I want to release them.
I installed the release plugin which when enabled, gives me a "Perform
Maven Release" link on the job summary page.

I went into the job config and selected "Preselect 'specify SCM
login/password" option.

When I click the "Perform Maven Release" link and enter my SCM information,
I get an error:

mavenExecutionResult exceptions not empty
message : Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on
project Shared: Missing required setting: scm connection or
developerConnection must be specified.
cause : Missing required setting: scm connection or developerConnection
must be specified.

This being my first attempt and configuring a Maven Release, what am I
missing?

-- 
Jeff Vincent
predato...@gmail.com
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox  !!


API query to load from disk?

2012-04-03 Thread Andrew Melo
Hey all,

We keep two copies of each job (one is for SCM-triggered builds and the
other is for dev-triggered "try" builds), and to make sure things stay in
sync, we have a cronjob that periodically copies config.xml from one build
to another. Is there an API call to tell jenkins to reload the
configuration from disc (a command line option would work as well). I tried
using /etc/init.d/jenkins reload, but it appears that actually shuts down
the master. jenkinshost/manage/api doesn't appear to exist either.

Thanks,
Andrew

-- 
--
Andrew Melo


Re: Plugins are not updating

2012-04-03 Thread Reynald Borer
Hi, 

Same issue here with the latest Jenkins version (1.458) running on a debian 
squeeze.

Has anyone already reported this issue in a Jira ticket?

Regards,
Reynald



On Tuesday, April 3, 2012 at 7:24 , Corey Quinn wrote:

> I can also replicate this on a pair of Jenkins instances running on Ubuntu 
> 10.04.
> 
> -- Corey
> 
> On Apr 2, 2012, at 10:22 PM, Emil B wrote:
> 
> > Hi,
> > 
> > I have the exact same problem. I choose the said three plugins and
> > click on Download now and install after restart. I've restarted
> > Jenkins manually, nothing seems to work.
> > 
> > I can still install new plugins. The Log is quite empty.
> > 
> > Are more people have this issue?
> > 
> > /Emil
> > 
> > Jenkins 1.458
> > OS: Solaris
> > Java 6
> > 
> > On 2 Apr, 23:37, Michael Higgins  > (http://puppetlabs.com)> wrote:
> > > On Mon, 2 Apr 2012 12:19:43 -0700 (PDT)
> > > 
> > > hsn_ http://gmail.com)> wrote:
> > > > in /jenkins/pluginManager i see that 3 bundled plugins are updated -
> > > > subversion, cvs, translation plugin.
> > > 
> > > 
> > > 
> > > > when i click on update new plugins are downloaded but when i check
> > > > them by looking inside - they are exactly same versions as my old, not
> > > > announced versions.
> > > 
> > > 
> > > 
> > > > Subversion Plugin - installed 1.34
> > > > CVS Plugin - installed 1.6
> > > > Translation Assistance Plugin - installed 1.8
> > > 
> > > 
> > > 
> > > > update site:
> > > > http://jenkins.mirror.isppower.de/updates/stable/update-center.json
> > > 
> > > 
> > > 
> > > Did you restart Jenkins?
> > > 
> > > --
> > > Michael Higgins
> > > QA Intern, PuppetLabs
> > > mhigg...@puppetlabs.com (http://puppetlabs.com)
> > 
> 





Re: EnvInject: injecting environment variables from URL

2012-04-03 Thread John Vacz

v0.22 works like a charm! Thanks for the great job!


On 29.03.2012 23:56, Grégory Boissinot wrote:

The SharedObjects 0.22 should solve this issue.

On Thu, Mar 29, 2012 at 10:50 PM, John Vacz 
> wrote:


0.21 fixed the problem. Thanks!

There is a tiny issue though, I defined the following in a
.properties file:

MAILING_LIST_DEV=d...@company.com  

MAILING_LIST_PM=p...@company.com  
MAILING_LIST_RELEASE_NOTES=$MAILING_LIST_PM,$MAILING_LIST_DEV
 


If I inject this properties file directly through envinject
plugin, the variable MAILING_LIST_RELEASE_NOTES is correctly
populated.But this seems to be not the case with shared-objects +
envinject plugin as you described, the variable
MAILING_LIST_RELEASE_NOTES is empty, the log reads:

[SharedObject] - Injecting shared objects as environment variables
[SharedObject] - Trying to retrieve a properties file through the url 
valuehttp://compny.com/config/email/mailing_lists.properties  

  associated to the shared object with the name Global Mailing List.
[EnvInject] - Unset unresolved 'MAILING_LIST_RELEASE_NOTES' variable.

 


Does the shared-objects plugin expand the variables a different
way as envinject plugin?

On 27.03.2012 22 :33, Grégory Boissinot wrote:

Sorry, it was a regression.
Fixed in shared-objects plugin 0.21

On Mon, Mar 26, 2012 at 10:17 PM, John Vacz
mailto:mailing.list.collect...@googlemail.com>> wrote:

Sorry, forgot to say, that the redirection on save button
works. The errors are only present in log file, no error
messages on web pages, but the objects are not saved.


On 25.03.2012 16 :02, Grégory Boissinot
wrote:

It should be fix with SharedObjects plugin 0.20.

On Fri, Mar 23, 2012 at 7:13 AM, John Vacz
mailto:mailing.list.collect...@googlemail.com>> wrote:

I have form submission problem on the shared objects
configure page when I access Jenkins through a local
proxy (ssl tunneling). I got  a "server not found" page
when I click the "save" button, Jenkins was trying to
submit/redirect to
https://real-server-name/jenkins//manage, instead of (my
guess) https://my-local-proxy/jenkins/manage.

Is there any way to get around this? I tried lynx/w3m on
the remote server, but they seem to have difficulties
dealing with the "drop down button" gadget.

On 18.03.2012 22:51, Grégory Boissinot wrote:

Thanks for testing EnvInject plugin.

EnvInject is aimed at managing environment variables.
For your need, you can use the Shared Objects plugin.
It's a complement to the EnvInject plugin. It enables
you to share objects in your environment (such as in
your case a properties files through an URL) and inject
its content as environment variables with the EnvInject
plugin.

You define your shared objects in the global Jenkins
configuration (>Manage Jenkins> Shared Objects) and
check 'Propagate shared objects' in the 'Prepare an
environment for the job run' section.
Shared objects will be computed dynamically and the
results will be injected as environment variables for
each job build.

https://wiki.jenkins-ci.org/display/JENKINS/SharedObjects+Plugin


On Fri, Mar 16, 2012 at 10:43 AM, John Vacz
mailto:mailing.list.collect...@googlemail.com>> wrote:

Can EnvInject plugin inject enviroment variables
defined in .properties file from a URL? I tried but
it did not work. Have i missed something obvious?

Our particular use case is that we need to inject
some mail address lists as environment variables to
be used by Email-ext plugin, and it would be very
handy if we can just inject those variables
directly from a http server (or our anonymous SVN
in this particular case). Meanwhile I add a shell
script to  download the .properties file and then
use EnvInject to inject them.

Furthermore, the variables are actually "global",
it would be great if we do not need to inject them
in every job, but globally in Jenkins. I noticed
that in Jenkins configure screen, there is a
"Prepare jobs environment" section (provided by
EnvInject?), it seems that one can inject viarab

Re: Plugins are not updating

2012-04-03 Thread Corey Quinn
I can also replicate this on a pair of Jenkins instances running on Ubuntu 
10.04.

-- Corey

On Apr 2, 2012, at 10:22 PM, Emil B wrote:

> Hi,
> 
> I have the exact same problem. I choose the said three plugins and
> click on Download now and install after restart. I've restarted
> Jenkins manually, nothing seems to work.
> 
> I can still install new plugins. The Log is quite empty.
> 
> Are more people have this issue?
> 
> /Emil
> 
> Jenkins 1.458
> OS: Solaris
> Java 6
> 
> On 2 Apr, 23:37, Michael Higgins  wrote:
>> On Mon, 2 Apr 2012 12:19:43 -0700 (PDT)
>> 
>> hsn_  wrote:
>>> in /jenkins/pluginManager i see that 3 bundled plugins are updated -
>>> subversion, cvs, translation plugin.
>> 
>>> when i click on update new plugins are downloaded but when i check
>>> them by looking inside - they are exactly same versions as my old, not
>>> announced versions.
>> 
>>> Subversion Plugin - installed 1.34
>>> CVS Plugin - installed 1.6
>>> Translation Assistance Plugin - installed 1.8
>> 
>>> update site:
>>> http://jenkins.mirror.isppower.de/updates/stable/update-center.json
>> 
>> Did you restart Jenkins?
>> 
>> --
>> Michael Higgins
>> QA Intern, PuppetLabs
>> mhigg...@puppetlabs.com



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: password masking plugin too aggressive

2012-04-03 Thread Maven User
I'm 100% positive that there are NO passwords in our system like "1.0".

Again - just ran the release plugin - seeing this:

*09:58:48*  Downloading: http:///-SNAPSHOT/maven-metadata.xml 
*09:58:48*
  Downloaded: http:// 

 
/-SNAPSHOT/maven-metadata.xml
 

 (980 B at 56.3 KB/sec)*09:58:48*  Uploading: 
http:///-SNAPSHOT/adp-acs-api--20120328.135848-2.pom 
*09:58:48*
  Uploaded: 
http:///-SNAPSHOT/adp-acs-api--20120328.135848-2.pom 

 (4 KB at 143.1 KB/sec)


There are several masking options, String Parameter, Run Parameter, etc - 
but in our case, none of these are checked.  I'm guessing during the 
release plugin, it's taking some -D params for versions and because of 
this, this masking plugin is blocking these unrelated things...

On Tuesday, March 27, 2012 4:02:45 PM UTC-4, gboissinot wrote:
>
> Mask passwords plugin tries to mask passwords values line by line of the 
> log file.
> If a line contains a string value matching a mask password value, the 
> value is replaced by ''.
> Therefore, I think you have an another problem.
> Mask-passwords plugin provides here only a display issue.
>
> On Tue, Mar 27, 2012 at 8:57 PM, Maven User  wrote:
>
>> Hi all - 
>>
>> I'm using the password masking plugin but when I use the maven release 
>> plugin, I can see that it's masking out other parameters (that are NOT 
>> checked in the main jenkins config section).
>>
>> My builds end up failing because maven is trying to retrieve a GAV of 
>> something like foo:bar: - quite literally.  Obviously there's no 
>> version "".
>>
>> Anyone else seeing these two being combined to ill effect?
>>
>
>

Re: Build Periodically only if artifact to be copied has changed

2012-04-03 Thread Grégory Boissinot
In a more global approach,  you could look at the XTrigger Plugin.

On Fri, Mar 30, 2012 at 10:15 PM, Simon Wiest  wrote:

> Hi,
>
> you could try to use the https://wiki.jenkins-ci.org/**
> display/JENKINS/URLTrigger+**Plugininstead
>  of the "Build Periodically" trigger.
>
> The URL trigger can periodically check if the content of an URL has
> changed (any much more...). Your trigger URL should point to the artifact
> you are relying on, e.g. http:///job/<**YOUR_BUILD_JOB>/**
> lastSuccessfulBuild/artifact/<**YOUR_WEBAPP>.war.
>
> Does this work for you?
>
> Cheers,
> Simon.
> --
> candrews (30.03.2012 18:07):
>
>  I have Jenkins configured to build and deploy a web application I'm
>> working on as 2 projects:
>> "Build" which compiles the application. It has "Archive the artifacts"
>> set to save the resulting artifacts.
>> "Deploy" which uses "Copy artifacts from another project" to get the
>> artifacts from "Build" then deploy them to the server. The "Build
>> Trigger" is set to "Build Periodically" every hour.
>>
>> The problem I'd like to solve is that the "Deploy" project does the
>> deployment every hour - even if the the artifacts it's using from the
>> "Build" project haven't changed. This means that in the middle of the
>> night, when no one builds have been done, deploys are still happening.
>>
>> Is there any way I can make the "Deploy" project only run if the
>> artifacts it depends on have changed?
>>
>
>


Help: SVN ldap setup mapping to Jenkins LDAP

2012-04-03 Thread bedub
My SVN ldap setup in my http.conf file is

  AuthLDAPUrl "ldap://xxx.bob.com/OU=bob 
Users,DC=bob,DC=com?samAccountName?sub?(objectClass=user)" "NONE"
  AuthLDAPBindDN "CN=Apache Server,OU=System Accounts,DC=bob,DC=com"
  AuthLDAPBindPassword "z"


So how do I map to the Jenkins LDAP configuration
Server: xxx.bob.com
root DN:
User search base:
User search filter:
Group search base
Manager DN:
Manager Password:

Thanks for any help, Brent


Settings envrionment variables for Slave

2012-04-03 Thread Anton Zavrin
Hello,



I’ve been struggling making my ssh slave to read custom variables.

Here is connection log for the slave:

https://gist.github.com/2228374



variables are set in /etc/profile

in .bash_profile; .profile

.bashrc



Pretty much everywhere for jenkins user.



As well as in node properties for the slave.



I’m out of ideas. Please help.

Jenkins runs the very latest version.


Re: Can't get email-ext plugin to work

2012-04-03 Thread Slide
Please give us a bit more information. What are you expecting? What
are you getting instead? Screenshots of your setup will help as well.

Thanks,

slide

On Tue, Apr 3, 2012 at 8:55 AM, Neil Bird  wrote:
>
>  I have Jenkins 1.457 (Linux) and Email Extension Plugin 2.19 .
>
>  I've ticked (and set) “Use List-ID Email Header” and “Add 'Precedence:
> bulk' Email Header” in the main Jenkins config. (but not “Override Global
> Settings”.
>
>  In a number of projects I've then ticked “Editable Email Notification” (and
> left everything else as defaults.)
>
>  But I see no sign of any changes in their emails.
>
>
>  What have I missed?
>
> --
> [neil@fnx ~]# rm -f .signature
> [neil@fnx ~]# ls -l .signature
> ls: .signature: No such file or directory
> [neil@fnx ~]# exit
>



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


Can't get email-ext plugin to work

2012-04-03 Thread Neil Bird


  I have Jenkins 1.457 (Linux) and Email Extension Plugin 2.19 .

  I've ticked (and set) “Use List-ID Email Header” and “Add 'Precedence: 
bulk' Email Header” in the main Jenkins config. (but not “Override Global 
Settings”.


  In a number of projects I've then ticked “Editable Email Notification” 
(and left everything else as defaults.)


  But I see no sign of any changes in their emails.


  What have I missed?

--
[neil@fnx ~]# rm -f .signature
[neil@fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil@fnx ~]# exit



Re: Plugins are not updating

2012-04-03 Thread طلال Anthony رابعة
Good morning!

Doesn't seem to be fixed.  I tried updating the CVS Plugin from 1.6 to 2.2 and 
the Translation Assistance Plugin from 1.8 to 1.9.  Both registered as upgraded 
but it wasn't reflected on restart.

Cheers!

   Anthony

On 2012-04-03, at 3:07 AM, miktap wrote:

> I think the issue is described here
> https://issues.jenkins-ci.org/browse/JENKINS-13129. At least I managed to
> update a bundled plugin by first creating the .pinned file manually. So it
> should be fixed in 1.458 but I haven't tried it out.
> 
> --
> View this message in context: 
> http://jenkins.361315.n4.nabble.com/Plugins-are-not-updating-tp4526975p4527977.html
> Sent from the Jenkins users mailing list archive at Nabble.com.



Re: Jenkins Git/GitHub plugin builds random branches

2012-04-03 Thread Wannes Sels
Your theory is correct. The git-plugin will list every branch revision, 
filter out non-top revision (branches that are fully merged in another 
branch) and then build them one by one, oldest commit first.
Once you've built all there is to build, only changes will build.

Maybe you could consider excluding branches that don't need to be built, 
perhaps by moving them so that you can exclude them by name.

On Tuesday, April 3, 2012 11:56:21 AM UTC+2, Sean Hammond wrote:
>
> Hey, this has happened to me twice on two different Ubuntu 10.04 servers
> running a fresh install of Jenkins 1.457.
>
> I install the Git and GitHub plugins and configure my new Jenkins job to
> build when it receives a push notification from GitHub. In the job
> config I leave "Branches to build - Branch Specifier (blank for
> default):" blank, which sets the value to **, which according to the
> help means "all branches will be examined for changes and built."
>
> What happens is that every time a build starts (whether started by a
> GitHub notification, periodic timer, or manually) it picks a random
> branch and builds that. Different branch every time. No relation to
> which branches have changed recently in the GitHub repo.
>
> Our GitHub repo has over 200 branches on it, most of them old branches
> that haven't changed in ages.
>
> My theory is that the new job sees every branch as new/changed and has
> to build each branch once before it will settle down and start building
> only the changed branch.
>
> Does anyone else know what might be going wrong? Will building 200
> branches fix the problem? Might there be any other way around it?
>
> I'm currently having it build every 10 mins to see if it will eventually
> settle down.
>
> Thanks
>
>

Re: View list of builds organised by branch?

2012-04-03 Thread seanh
Thanks for the suggestions. If I can get the build-description to put
the git branch name in the build description, that would be good enough.
It's not particularly pretty, but it would at least make it quick to
find the recent builds of the branch you're interested in.


Jenkins Git/GitHub plugin builds random branches

2012-04-03 Thread seanh
Hey, this has happened to me twice on two different Ubuntu 10.04 servers
running a fresh install of Jenkins 1.457.

I install the Git and GitHub plugins and configure my new Jenkins job to
build when it receives a push notification from GitHub. In the job
config I leave "Branches to build - Branch Specifier (blank for
default):" blank, which sets the value to **, which according to the
help means "all branches will be examined for changes and built."

What happens is that every time a build starts (whether started by a
GitHub notification, periodic timer, or manually) it picks a random
branch and builds that. Different branch every time. No relation to
which branches have changed recently in the GitHub repo.

Our GitHub repo has over 200 branches on it, most of them old branches
that haven't changed in ages.

My theory is that the new job sees every branch as new/changed and has
to build each branch once before it will settle down and start building
only the changed branch.

Does anyone else know what might be going wrong? Will building 200
branches fix the problem? Might there be any other way around it?

I'm currently having it build every 10 mins to see if it will eventually
settle down.

Thanks


Re: Master/Slave security

2012-04-03 Thread Jan Seidel
Word! Sami

I use Jenkins also for administrative jobs like rebooting the machine,
restarting the services, opening the task manager or checking with WMI
the disk space but you could of course also do more exciting things
here ;)

Some jobs like opening the task manager or rebooting the machine have
proven their worth if the system hangs and your are sitting after EOB
at home while the machines are located in the company' old data
centre.
Somewhat frustrating to get stopped like that in the middle of an
important task ;) So hooray for this imperfection but don't forget to
lockdown these jobs that nobody else can access them.

Take care
Jan

On 31 Mrz., 17:55, Sami Tikka  wrote:
> According to my understanding the master communicates with the slaves by 
> sending and receiving java objects. AFAIK there is no validation for the 
> objects the master receives from the slaves. So, even though there is no easy 
> way for a random dude to inject his own objects into the stream, if that were 
> to happen, the master would trust the slaves and would use the objects.
>
> The reverse problem also exists: the master can execute any commands on the 
> slaves and depending on the master security settings, people you do not trust 
> might be able to execute commands on the slave if they can create or change 
> job configurations or access the script console.
>
> Do not run slaves on hosts you do to trust or run a slave for a master you do 
> not trust.
>
> -- Sami
>
> Matthew Buckett  kirjoitti 30.3.2012 kello 22.23:
>
>
>
>
>
>
>
> > On the wiki 
> > pagehttps://wiki.jenkins-ci.org/display/JENKINS/Securing+Jenkinsit mentions 
> > that slaves are able to execute code on the master node.
>
> > Is this page correct, is the jenkins master only as secure as the weakest 
> > node?
>
> > Thanks.
>
> > Matthew Buckett


Re: Order of Jenkins actions

2012-04-03 Thread Jan Seidel
Hi Rodney,

well the name is programmtic XD
You can simply trigger a downstream build that makes the final action
you'd like to see after the artifact deployer.

Take care
Jan

On 1 Apr., 23:26, Grégory Boissinot 
wrote:
> PostBuildScript is designed to run in the last step, whatever the order of
> elements in the config.xml.
>
>
>
>
>
>
>
> On Mon, Jan 30, 2012 at 9:48 PM, Glfk4rt  wrote:
> > I am trying to exercise a Post Build script after the Artifact Deployer.
> > To do this, I have re-ordered the events in two projects config.xml.  For
> > the first project, this worked perfectly.  In the second project, the order
> > varies.
>
> > Is the variance of order expected behaviour? Or do I have something else
> > going on? like a rogue server process with the older config.
>
> > Rodney


Re: Triggering remote builds without read access?

2012-04-03 Thread Jan Seidel
Hi,

have you tried to use the jenkins-cli ? That would be the easiest
approach if you don't use authentication methods of the main stream.

I have a while ago been crunching on that issue as well and you mail
fail - as I did - if you don't use straight forward authentication but
something more exotic like TeamForge as Auth Realm.

Placing the credentials into the URL won't work afaik. But wget, curl
and another tool - whose name I can't recall right now - do have a
function that allows you to pass the credentials as parameters.
These parameters operate on different ways, depending on the tool you
use. Best approach is from curl if I ain't that wrong in
remembering ;)

That tool needs the field names to know (here j_username and
j_password) and the according parameters/credentials.
This worked fine but you have to be aware that you may need an extra
switch to set the encoding for special characters.
It's a bit of testing ...

Take care
Jan

On 2 Apr., 23:43, Ryan Ragona  wrote:
> Minor update: I would be totally fine making a 'builder' user with read
> access and then just authenticating in the URL, something like:
>
> wget http://username:passw...@host.com:8080/job/test/build?token=build
>
> ... but that doesn't appear to work. That solution seems so close to what I
> want; does anyone see something blatantly incorrect with the
> username:password credentials passed in the URL like that? My main goal
> here is just to get builds triggering without allowing any random person to
> read my Jenkins stuff.
>
>
>
>
>
>
>
> On Mon, Apr 2, 2012 at 2:26 PM, Anogar  wrote:
> > Is there a way to allow anonymous users to trigger builds but NOT view
> > the project? I just want something like the following to work:
>
> > wgethttp://host.com:8080/job/test/build?token=build
>
> > ... and it works just fine as long as the "Anonymous" user has
> > permissions for both overall/read and job/read. Is there a way to make
> > it so that all anonymous users see is the login box but remote
> > services can still trigger builds?


Re: Plugins are not updating

2012-04-03 Thread miktap
I think the issue is described here
https://issues.jenkins-ci.org/browse/JENKINS-13129. At least I managed to
update a bundled plugin by first creating the .pinned file manually. So it
should be fixed in 1.458 but I haven't tried it out.

--
View this message in context: 
http://jenkins.361315.n4.nabble.com/Plugins-are-not-updating-tp4526975p4527977.html
Sent from the Jenkins users mailing list archive at Nabble.com.