Commit Graph
6200 Commits
Author SHA1 Message Date
Kohsuke Kawaguchi b1604e85ce adding in those dependencies 2012-05-30 10:42:28 -07:00
Kohsuke Kawaguchi f98c9fb413 PAM authentication is now a bundled plugin 2012-05-30 10:34:46 -07:00
Kohsuke Kawaguchi 9b4cd99620 LDAP is now a bundled plugin 2012-05-30 10:34:14 -07:00
Kohsuke Kawaguchi 903bf089b7 External monitor job type is moved to a plugin.
The actual release needs to happen in a lock step, as the new plugin
needs to require yet-to-be-released version of the core. So for the time
being it's a snapshot dependency, deployed in the snapshot repository.
2012-05-29 17:48:35 -07:00
Kohsuke Kawaguchi 94bbdcb6ac Allow the tree parameter and the xpath parameter to be used together in the REST API.
Previously, the presence of the xpath parameter suppressed the tree
parameter processing. This change fixes that so that the tree parameter
can be used for building small DOM, then XPath to manipulate the data
further.
2012-05-29 14:59:31 -07:00
fma1977 71ad43a141 [FIXED JENKINS-13735]
Added test whether the currently checked slave computer actually can take the buildable item before flagging it as needed (avoids powering up and connecting to slaves for jobs they can't build).
2012-05-29 13:38:17 -07:00
murank 00a221d42f fix garbled mail headers (From/To/ReplyTo). 2012-05-29 13:25:21 -07:00
Kohsuke Kawaguchi 65c659d0be Removed pointless private methods. 2012-05-29 11:43:38 -07:00
Kohsuke Kawaguchi 5a51361c46 Widening of this exception incorrectly caught InterruptedException.
Narrowing it down to reduce the harm.
2012-05-29 11:37:09 -07:00
Kohsuke Kawaguchi 14dbcd88d3 Renamed Runner family into *Execution.
... so that we can expose them as an object that keeps track of
execution-scoped objects.
2012-05-29 10:54:58 -07:00
Kohsuke Kawaguchi fba43bf5fb reverting access modifiers 2012-05-25 18:42:15 -07:00
Kohsuke Kawaguchi 4a6aa4a1b4 After playing with it, I now see why it should apply to all AbstractProject.
... not from user's point of view, but more from implementation point of
view (and this can be used to push SCM retry counts out of the core.)

To avoid cluttering the UI unnecessarily, adding isApplicable() to
SCMCheckoutStrategyDescriptor so that it can nominate itself only for
matrix projects.
2012-05-25 18:26:30 -07:00
Kohsuke Kawaguchi c2787404b1 if there's nothing for the user to select, display nothing. 2012-05-25 12:33:17 -07:00
Kohsuke Kawaguchi cc29c9b3b1 no practical harm in setting this to null 2012-05-25 12:33:16 -07:00
Kohsuke Kawaguchi 34d6de5097 Doc improvements 2012-05-25 12:33:16 -07:00
Kohsuke Kawaguchi 15ecb59891 Expanded to cover MatrixBuild, not just MatrixRun.
For example, a common use cases are:

- skip the parent checkout and only do the checkout in MatrixRun
- check out only once in MatrixBuild and then let all MatrixRuns build from the same directory

Accoringly,

- renamed classes to drop 'Run' since now they cover 'Build' as well.
- instead of using the boolean return value to indicate the fallback to
  default, using some backdoor to have the default implementation do
  this. I think this keeps the abstraction cleaner for the implementor
  of the extension point.
2012-05-25 12:33:15 -07:00
Sergey Burkov dc57854655 Revised version of Extension 2012-05-25 12:31:46 -07:00
Kohsuke Kawaguchi 10c1eb3dbd follow up fix to d2699b4859
Further reduce the scope of the lock to only cover jobNames access, which is mandatory. if ig.doCreateItem requires synchronization, that's a job of ig.doCreateItem implementation, not that of ListView.
2012-05-24 19:59:40 -07:00
Kohsuke Kawaguchi 5f51089b32 Generalized AgentProtocol into an extension point. 2012-05-24 16:28:32 -07:00
Kohsuke Kawaguchi 25d990c539 Implemented transport security to CLI connection.
It uses Diffie Hellman to come up with one-time session key, then have
the server sign this session key to allow the client to verify that
there's no man in the middle.
2012-05-24 15:49:37 -07:00
Kohsuke Kawaguchi 18963ee9af [FIXED JENKINS-13625]
In the end, proper fix requires having a filter that tracks
GZipOutputStream.
2012-05-23 20:11:58 -07:00
Kohsuke Kawaguchi ecec5902ff leaving the record of attempted gzip encoding problem fix. 2012-05-23 20:08:57 -07:00
Kohsuke Kawaguchi be1f8f91a3 Fixed a bug in Jenkins.overallNodeProvisioner
Until now, Jenkins.overallNodeProvisioner was tracking an inconsistent
pair of numbers. On one hand, it was tracking all the executors in the
system, but then it was also only tracking the # of free-roaming
label-unassigned jobs as the queue length.

So if all your slaves are set with Node.Mode.EXCLUSIVE and you have some
free-roaming jobs, then it'll never tickle NodePrivisioner.

In other words, the # of executors weren't reflecting the actual # of
executors that can execute what's counted as the queue length.

See the problem report at
https://groups.google.com/forum/?fromgroups#!topic/jenkinsci-dev/bUwGEgOwv4Q

To fix this, I introduced another LoadStatistics that only counts
the # of executors that can execute free-roaming jobs, and # of
free-roaming jobs as the queue length. In this way, two pairs of numbers
are consistent.

This now allows us to use overallLoadStatistics for really the entire
system, including all executors and the total queue length. This is
primarily for administrators to see the resource utilization, and it is
not useful for NodeProvisioner input because it's mixing too many
different things.

The semantics change in OverallLoadStatistics.queueLength allows us to
deprecate its totalQueueLength field.
2012-05-23 17:34:47 -07:00
Kohsuke Kawaguchi 5bba8c7660 use of "Content-Encoding:gzip" was causing the automatic login initiation to fail. 2012-05-23 17:28:25 -07:00
Kohsuke Kawaguchi 95c1728c05 [FIXED JENKINS-13202] fixed a regression in untar on exotic platforms.
Fall back in non-JNA case wasn't working.
2012-05-22 18:43:45 -07:00
Dave Hunt 70ee74c5fc [FIXED JENKINS-13640] Allow file parameters to be viewed as plain text. 2012-05-22 18:30:30 -07:00
Kohsuke Kawaguchi af0af44906 Massaging the previous commit a bit.
404 for nearby configuration builds can make the life of automated
client script more complicated, so opt for redirection.
2012-05-22 18:12:19 -07:00
lvotypko add119d353 Correction of returned url 2012-05-22 17:46:29 -07:00
Vincent Latombe d1b2ba7e49 [FIXED JENKINS-13429]
Backward compatibility is preventing the View.READ permission to apply
correctly. It actually overrides the View.READ instead of complementing
it.

This change only applies default READ right if the View.READ is not
available, and the user has View.CONFIGURE + the view is not empty.
2012-05-22 17:45:01 -07:00
Fred G 2128c9d7fe Fixed broken JSON representation caused by hyperlink in console output 2012-05-22 17:39:04 -07:00
Kohsuke Kawaguchi 3b55feede9 fixed NPE.
See https://github.com/jenkinsci/jenkins/pull/474 for the original conversation
2012-05-22 17:15:19 -07:00
Eric Dalquist f5f77bf2b5 [FIXED JENKINS-13826] Include file system path in error
Include the file system path that was checked in the low disk space
error message
2012-05-22 16:58:22 -07:00
Kohsuke Kawaguchi 09ffd9916b touch up. jobNames is a collection that does require a synchronization.
But the general direction of reducing the size of the lock is correct.
2012-05-22 16:50:41 -07:00
Brian Moyles ed0a615743 getViews here could also probably drop synchronized 2012-05-22 16:41:27 -07:00
Brian Moyles d2699b4859 synchronizing here can cause deadlock conditions from plugins like the
keyboard shortcuts plugin that ask for all views very frequently and do
additional locking on the actual view objects
2012-05-22 16:41:27 -07:00
Kohsuke Kawaguchi 8f6fda0052 added a subtype of HyperlinkNote that creates model link 2012-05-22 16:24:03 -07:00
Kohsuke Kawaguchi 33a4c2f08c redone the custom workspace support in matrix project.
The previous implementation was always appending the per-configuration unique suffix, making it impossible for different configuration builds to share workspaces. In this fix, we introduce a secondary field to control the workspace of sub-builds (which can be either absolute or relative to the matrix head workspace.)
2012-05-22 16:23:55 -07:00
Kohsuke Kawaguchi 06ec0c3dd8 doc improvement 2012-05-22 16:23:22 -07:00
Kohsuke Kawaguchi 93b88af550 doc change 2012-05-22 16:23:22 -07:00
Kohsuke Kawaguchi fe67909c6f If the JDK file size is too small, don't use it as a cache.
In the past JDK download site had served error message with 200 error code, making Jenkins think that the download is actually successful. Without this check, such cache polution will not be corrected.
2012-05-21 18:43:17 -07:00
Kohsuke Kawaguchi c5cefcb165 documenting what this method does 2012-05-21 17:24:00 -07:00
Kohsuke Kawaguchi c86aa67953 Enabled concurrent build support for matrix projects 2012-05-21 17:03:35 -07:00
Kohsuke Kawaguchi 039b359a26 added a note 2012-05-21 17:03:08 -07:00
Kohsuke Kawaguchi 76832379d8 exposed data about installed plugins, installable plugins, update center jobs, etc., to the REST API 2012-05-21 16:59:24 -07:00
Nicolas De Loof 609392414f [FIX JENKINS-13824] prevent NullPointerException 2012-05-18 14:55:25 +02:00
Kohsuke Kawaguchi 124706a78c Eliminated the lock for better scalability. 2012-05-15 23:01:17 -07:00
bap2000 9d8f300179 Enable ant default excludes to be turned off.
Add a new overload method to list files that include the files that ant excludes by default.
2012-05-14 16:01:42 -07:00
Kohsuke Kawaguchi 18eb975b9f pointless type parameters help work around bugs in javac in earlier 2012-05-08 23:50:22 -07:00
David Reiss e15b2e19e3 [FIXED JENKINS-13202] Don't set mtime or mode on symlinks
Previously, the untar code tries to set the last modified time and mode
on every untarred file.  However, if the tar contains a broken symlink,
or a symlink that points to a file that has not been untarred yet, the
time/mode setting would fail on the broken symlink.

Symlinks don't have meaningful modified times or modes of their own, so
only set these values on non-symlinks.

Rename the file "a" in the test to expose the bug.
2012-05-08 14:52:52 -07:00
Ryan Campbell ad2912a317 Expose /whoAmI/api/*
- Create WhoAmI UnprotectedRootAction
2012-05-07 18:54:28 -05:00