Kirill Zaitsev
d225181a0f
Refresh tokens before any requests to remote
2015-01-27 02:33:27 +03:00
Brad Rydzewski
f209d126db
fixed govet issue
2015-01-13 23:32:25 -08:00
Brad Rydzewski
d0b722cc8b
Insert and Update Users instead of generic Save function. Check ID != 0
2015-01-13 21:57:02 -08:00
Matt Bostock
b027bd8392
Run gofmt and add test to prevent regressions
...
Run `go fmt ./...` [1] and add a test to the `test` make target that
checks if `go fmt` has been run.
[1]: http://blog.golang.org/go-fmt-your-code
2015-01-11 18:54:34 +00:00
Brad Rydzewski
f890d42019
fixed unit test
2014-12-30 13:17:54 -08:00
Brad Rydzewski
c3e00e2608
improved error messaging for failed build due to Docker errors
2014-12-30 13:09:05 -08:00
Michael Nutt
b94280c15c
Change from notification after_success
and after_failure
to change
...
Also removes the extra db field; instead, just send Prior as part of the Request.
This reverts commit e8b993e7da
.
2014-12-30 13:25:14 -05:00
Michael Nutt
e8b993e7da
Add support for after_success and after_failure to email notifications
...
This allows you to restrict email notifications to only be sent after the build changes from success to failure or failure to success. It errs on the side of sending the notification; if the build is in another state (hung, for instance) or there was no previous build on the branch the email will also be sent.
Since the notify plugin shouldn't really have any responsibility for querying the database to find the previous commit's status, we store it on the commit when we save it.
2014-12-30 11:37:57 -05:00
mopemoepe
2059c6f4e6
Fix Docker Client FileDescriptor Leak
2014-12-19 01:58:17 +09:00
Brad Rydzewski
f86e73bdbf
Merge pull request #720 from floatdrop/hostname-in-drone-yml
...
Add hostname in docker section of .drone.yml
2014-12-14 23:18:06 -08:00
Kirill Zaitsev
6609d09e91
Move env variables outsude docker build #PR2
2014-12-12 12:01:12 +03:00
Kirill Zaitsev
6b586c62da
Move id_rsa outside docker build #PR1
2014-12-12 01:42:38 +03:00
Ke Zhu
c6bc20dca7
parse build file with params injection
2014-12-07 11:26:43 -05:00
Vsevolod Strukchinsky
78b8b7dd75
Add hostname in docker section of .drone.yml
2014-11-20 15:18:12 +05:00
Christopher Brickley
270ce52b76
add gogs support
2014-11-18 21:50:05 -05:00
Brad Rydzewski
65fbfed035
reverse sorting private params when injecting
2014-11-11 09:26:15 -08:00
Kirill Zaitsev
a4cc2e2949
Return ErrInternalServer when docker server return 500 code
2014-11-07 19:58:10 +03:00
Brad Rydzewski
f21fd563e8
fixes #639
2014-11-01 11:28:59 -07:00
Igor Dolzhikov
7e9dcce3cb
second excluding of unused transformation
...
sorry, could not grep it all before
2014-10-27 00:47:54 +06:00
Seb
98229b25a0
support for gitlab
...
fix for #627
2014-10-26 01:45:52 +02:00
Vsevolod Strukchinsky
54a6e56611
Add docker section in .drone.yml with net option
2014-10-24 00:01:44 +06:00
Brad Rydzewski
1cb74a90e3
Merge pull request #599 from bradrydzewski/remote-workers
...
Updated Docker Client to accept TLS
2014-10-22 23:50:43 -07:00
Brad Rydzewski
7009778176
added token to post-commit hooks
2014-10-22 00:13:47 -07:00
Brad Rydzewski
2c4e992f1f
drone client accepts docker host, cert and key
2014-10-21 01:17:33 -07:00
Brad Rydzewski
8436bd0270
minor docker client refactoring
2014-10-21 00:52:35 -07:00
Brad Rydzewski
7dfc67113d
cleanup docker.New to overload, so to speak
2014-10-21 00:38:19 -07:00
Brad Rydzewski
505ebe7024
removed hard-coded http
in Docker client
2014-10-20 22:52:34 -07:00
Brad Rydzewski
f4aa84a057
updated Docker Client to accept TLS
2014-10-20 02:29:59 -07:00
Daniel Graña
94d7f12667
Detect https scheme when serving ssl
2014-10-15 09:51:05 -02:00
Brad Rydzewski
629547813c
modified parameter injection strategy. see #538
2014-10-12 13:02:53 -07:00
Brad Rydzewski
ea05ec725a
merged plugin changes from master to exp
2014-10-11 15:35:25 -07:00
Brad Rydzewski
bc0f7182ae
removed unused methods from Commit struct
2014-10-05 22:25:08 -07:00
Brad Rydzewski
7f4f5bdfbc
fixed docker imports due to package change
2014-10-01 11:41:42 -07:00
Brad Rydzewski
58f287a541
added worker handlers
2014-09-29 21:34:30 -07:00
Brad Rydzewski
21f9aec808
added new handlers and workers
2014-09-28 18:36:24 -07:00
Brad Rydzewski
7fed5f5de6
fixed docker test to use new default port
2014-09-23 23:57:43 -07:00
Brad Rydzewski
cc87e7a1fa
fixed default Docker port to match post 1.0
2014-09-23 23:36:07 -07:00
Brad Rydzewski
177d9cab93
fixed failing limited writer test
2014-09-23 22:59:43 -07:00
Brad Rydzewski
2632fcb86e
Merge remote-tracking branch 'origin/exp' into exp
2014-09-23 20:49:23 -07:00
Brad Rydzewski
73060a463c
added limit to streaming output to avoid crashes
2014-09-23 20:47:40 -07:00
Vsevolod Strukchinsky
2acf867140
Fix for «undefined: "github.com/dotcloud/docker/utils".StdCopy»
...
Seems like StdCopy moved to own package.
Closes #471
2014-09-23 17:32:16 +06:00
Brad Rydzewski
bf7f9c823c
fixed proxy test that relied on map ordering
2014-09-09 22:08:26 -07:00
Brad Rydzewski
3493b868ef
upgrade go1.3 and irc library
2014-09-09 21:41:11 -07:00
Brad Rydzewski
a9f2affd5c
updated all deployments to include conditional logic
2014-09-07 23:08:35 -07:00
Brad Rydzewski
38379992bf
refactored plugin/remote and adapted @bugBugagazavr Gitlab code
2014-09-02 00:18:17 -07:00
Brad Rydzewski
e7e6b2c608
added code to append private environment variables for non-PRs
2014-08-13 21:37:56 -07:00
Brad Rydzewski
41ca011d27
Update script.go
2014-08-13 11:20:03 -07:00
Brad Rydzewski
ca2a93ed9f
ability to set xsrf token
2014-08-09 19:06:37 -07:00
Brad Rydzewski
1888a6e5b7
moved drone build
to cmd folder
2014-08-07 22:22:04 -07:00
Brad Rydzewski
55fb93fcdc
adding repo url to build environment
2014-08-07 21:26:06 -07:00