96e987bbfa
Use inputTypes from plugins to determine valid input types
...
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-29 17:42:49 -04:00
687ca429c3
Pass project and jobset to fetchInput
...
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-29 15:33:22 -04:00
f231c23b75
Only serialize JSON and HTML, not the C::C::REST defaults
...
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-26 14:25:25 -04:00
eab13d8736
ToJSON is automatically called recursively
...
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-26 13:54:07 -04:00
d6b23272e3
Don't try to serialize if there's nothing to serialize
...
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-26 12:04:27 -04:00
f7bcf9fc19
The field is actually enabled, not disabled
...
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-25 17:59:13 -04:00
1404d33005
Show when a Project's jobsets are disabled
...
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-25 17:48:28 -04:00
513c030268
Do not use local clone for Bazaar inputs.
2013-07-22 20:42:17 +02:00
6574d125c7
Get rid of a warning in the HipChat plugin
2013-07-19 14:43:04 +02:00
2d5e06918b
Hydra::View::Plain: Explicitly set the response body.
...
This fixes a bug with Catalyst 1.39 whereby a raw hash table would
erroneously be returned for /nix-cache-info.
2013-07-12 16:53:48 +02:00
438d7f7c5c
Reply 404 for requests for non-existent .narinfo.
2013-07-12 16:52:40 +02:00
db3647aa15
Set the character set
...
Cherry-picked from the persona branch.
2013-07-12 15:04:13 +02:00
d071bbfb28
Fix Hipchat notification
2013-07-12 15:04:13 +02:00
7a0f80f016
Include the email override list in the Jobset serialization
...
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-11 11:01:36 -04:00
ccd2292458
Link to both the Persona and legacy sign in
2013-07-09 14:39:28 +02:00
486a844866
Fix audience URL
2013-07-09 14:05:04 +02:00
1db9381473
Fix legacy login
2013-07-09 13:55:44 +02:00
9aa44fa944
Some escaping
2013-07-09 13:55:29 +02:00
895f21cfad
Show a user's roles in the preferences page
2013-07-09 13:07:04 +02:00
476203d0bb
Prevent Persona users from setting a password
2013-07-09 13:01:56 +02:00
5fecf8e385
Show sign in as success
2013-07-09 12:07:18 +02:00
08f3bb78c4
Use the alert class for flash messages
2013-07-09 12:05:25 +02:00
12ca755bea
Don't redirect to /login if authentication is required
...
We can just serve the login page in place.
2013-07-09 12:02:15 +02:00
13f0b54c49
Set the character set
2013-07-09 00:23:48 +02:00
c08fc6ce1e
Add basic Persona support
...
This allows users to sign in to Hydra using Mozilla Persona accounts.
When a user first sign in, a row in the Users table for the given
Persona identity (an email address) is created automatically.
To do: figure out how to deal with legacy accounts.
2013-07-08 23:54:40 +02:00
efd011fbc3
Revert "Don't call buildFinished after we already know it failed"
...
I don't understand perl strings.
This reverts commit b2f6be9686
.
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-08 14:30:46 -04:00
b2f6be9686
Don't call buildFinished after we already know it failed
...
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-08 13:52:51 -04:00
166d56088f
Call buildFinished when a cached build is added
...
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-08 13:35:34 -04:00
b46f2134e0
Revert "Emable overriding the email template."
...
This doesn't work as planned, will re-work.
This reverts commit 304f8a5714
.
2013-07-05 18:10:50 -04:00
a168f43515
Revert "Handle HYDRA_EMAIL_TEMPLATES that are paths"
...
This doesn't work as planned, will re-work.
This reverts commit d2ce7747a0
.
2013-07-05 18:10:21 -04:00
d2ce7747a0
Handle HYDRA_EMAIL_TEMPLATES that are paths
...
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-05 17:22:51 -04:00
304f8a5714
Emable overriding the email template.
...
The HYDRA_EMAIL_TEMPLATE env var can be set to any value understood by
https://metacpan.org/module/Template#process-template-vars-output-options
as the $template argument.
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-05 16:29:09 -04:00
be3ca0dd84
Fix jobset update
...
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-05 14:44:29 -04:00
93a14ccf32
Check if we want to send email for a build before iterating through its users
...
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-05 14:06:10 -04:00
002ac9ef63
Merge in the first bits of the API work
...
The catalyst-action-rest branch from shlevy/hydra was an exploration of
using Catalyst::Action::REST to create a JSON API for hydra. This commit
merges in the best bits from that experiment, with the goal that further
API endpoints can be added incrementally.
In addition to migrating more endpoints, there is potential for
improvement in what's already been done:
* The web interface can be updated to use the same non-GET endpoints as
the JSON interface (using x-tunneled-method) instead of having a
separate endpoint
* The web rendering should use the $c->stash->{resource} data structure
where applicable rather than putting the same data in two places in
the stash
* Which columns to render for each endpoint is a completely debatable
question
* Hydra::Component::ToJSON should turn has_many relations that have
strings as their primary keys into objects instead of arrays
Fixes NixOS/hydra#98
Signed-off-by: Shea Levy <shea@shealevy.com >
2013-07-02 14:00:46 -04:00
d18fc4fc38
Include names of committers in HipChat notifications
...
HipChat notification messages now say which committers were
responsible, e.g.
Job patchelf:trunk:tarball: Failed, probably due to 2 commits by Eelco Dolstra
2013-07-02 13:54:18 +02:00
7e11d01abf
Remove tabs
2013-07-02 11:37:16 +02:00
fe030331b5
Revert "Don't compress already-compressed files."
...
This reverts commit 190bffd846
.
2013-07-01 18:46:18 +02:00
11414b0447
Revert "Doh"
...
This reverts commit f1f938512d
.
2013-07-01 18:46:14 +02:00
f1f938512d
Doh
2013-07-01 18:12:33 +02:00
9d7c14b342
Merge pull request #103 from civodul/nar-uncompressed
...
Don't compress already-compressed files.
2013-07-01 08:16:51 -07:00
9939ddf22c
Add a plugin for HipChat notification
...
This plugin sends notification of build failure or success to a
HipChat room, if the status differs from the last build.
The plugin can be configured by adding one or more of these stanzas to
hydra.conf:
<hipchat>
jobs = (patchelf|nixops):.*:.*
room = 1234
token = 39ab2198fe...
</hipchat>
Here "jobs" is a regular expression against which the fully qualified
job name of the build is matched (so for instance
"nixops:master:tarball" will match the stanza above).
2013-06-27 18:56:31 +02:00
698d6eac89
Eliminate duplicate getPreviousBuild functions
...
And move some stuff into CatalystUtils for use by other plugins.
2013-06-27 18:08:00 +02:00
c65f40e146
Add common.js to the tarball
2013-06-25 12:48:25 +02:00
611f402a70
Move common Javascript code into a separate file
2013-06-25 01:16:28 +02:00
a5436be2ce
After editing a project/jobset, redirect back to the config tab
2013-06-25 01:00:59 +02:00
68a03bc674
When a tab is selected, change the fragment id
...
And when a page is visited, active the tab identified by the fragment
id. This allows linking to a specific tab.
Fixes #93 .
2013-06-25 00:55:14 +02:00
afc90b36db
Don't print to stdout
2013-06-24 22:22:43 +00:00
190bffd846
Don't compress already-compressed files.
...
Fixes <https://github.com/NixOS/hydra/issues/102 >.
2013-06-23 15:23:16 +02:00
51f0185797
Allow _ in release names
2013-06-18 16:00:24 +02:00