Commit graph

232 commits

Author SHA1 Message Date
Brad Rydzewski
d9b529f2f6 added support for convert plugins 2019-09-02 23:05:30 -07:00
Brad Rydzewski
ba82e411a5 fix failing webhook test 2019-07-28 12:30:48 -07:00
Brad Rydzewski
443b369b91 ability to limit webhook delivery by event and action 2019-07-28 12:22:16 -07:00
Brad Rydzewski
7e23d36e77 log external secret error 2019-06-22 19:00:12 -07:00
Brad Rydzewski
56fd3042ba fix inconsistent base64 encoding/decoding secrets 2019-06-06 16:57:58 -07:00
Brad Rydzewski
f647e9ac0e
Merge pull request #2670 from xuyang2/master [CI SKIP]
Fix typos
2019-04-16 16:14:16 -07:00
Brad Rydzewski
8042aa4519 include system in webhook payload 2019-04-16 08:21:05 -07:00
徐扬
49bbaf4a11 fix some typos 2019-04-16 11:05:46 +08:00
Brad Rydzewski
c338fadd4f specify a user for the pipeline step, issue #2651 2019-04-10 19:41:08 -07:00
Brad Rydzewski
504e4754e6 support for encrypted secrets 2019-03-18 08:34:36 -07:00
Brad Rydzewski
5013cfa993 enable basic jsonnet in process 2019-03-13 16:12:54 -07:00
Brad Rydzewski
ff8f29df53 audit headers 2019-03-13 14:47:47 -07:00
Brad Rydzewski
5281751ba5 continue adding build tags issue #2616 [ci skip] 2019-02-28 16:23:06 -08:00
Brad Rydzewski
d2bdd5fca5 fix registry credentials from secrets 2019-02-22 11:58:23 -08:00
Brad Rydzewski
69a8e404bd fix issue with wrong default .drone.yml file 2019-02-22 09:01:11 -08:00
Brad Rydzewski
5b6a3d8ff4 squash and merge local branch 2019-02-19 15:56:41 -08:00
Brad Rydzewski
d9fd23a6df experimental branch. playing around with boltdb 2015-04-07 01:20:55 -07:00
Henrik Jonsson
2526fb17c5 if publish.docker.email is unspecified, pass in -e ' ' to avoid having the line end up as 'docker login -u foo -p bar -e someregistry', which is interpreted as 'log in user foo with pass bar and email someregistry to https://index.docker.io/v1/' (c.f. 'docker help login') 2015-04-01 18:21:33 +02:00
Andy Gardner
e59d205bda Adding drone icon to slack notifications 2015-03-05 09:57:49 +00:00
Andy Gardner
dd805c2246 Fixing bug which prevented Webhook notifications on build failure 2015-02-25 12:51:03 +02:00
Kirill Zaitsev
961a91dd23 Allow to skip verify in oauths requests 2015-02-24 00:27:17 +03:00
Andrew Weiss
18ed28867f Merge branch 'master' into azure-storage 2015-02-21 14:33:48 -05:00
Brad Rydzewski
cfe50421dc remove typo in github status message 2015-02-20 17:44:43 -08:00
Andrew Weiss
4e5bcb527b plugin support for Azure Storage 2015-02-20 17:21:11 -05:00
Brad Rydzewski
bd606c43e0 Merge pull request #862 from ilbambino/master
Possibility to retag docker images
2015-02-20 09:55:21 -08:00
Brad Rydzewski
bd8dcf8de5 Merge pull request #876 from masarakki/fix-for-ghe-private
Change repo to be private when GHE is private mode.
2015-02-12 23:09:19 -08:00
masarakki
8d1015a106 Change repo to be private when GHE is private mode. 2015-02-13 14:09:53 +09:00
Brad Rydzewski
a5dd61f480 display list of required orgs in github login error 2015-02-12 15:19:31 -08:00
Ulrich Schreiner
d3b337ff30 bug in error handling 2015-02-06 12:05:39 +01:00
Ulrich Schreiner
7b02878df9 reuse more existing code 2015-02-06 12:02:02 +01:00
Ulrich Schreiner
f57640a402 remove hook/key from a bitbucket repo 2015-02-06 11:36:31 +01:00
Ulrich Schreiner
5f9887a49c Merge branch 'master' into delrepo 2015-02-06 10:30:10 +01:00
Brad Rydzewski
271974e98f fixed go.rice issue 2015-02-05 18:48:16 -08:00
Ulrich Schreiner
05b6dad81e Merge branch 'master' into delrepo 2015-02-05 14:47:35 +01:00
Ulrich Schreiner
bd8fb51c2a rework to delete the repository from the datastore if there are previous errors from the remote 2015-02-05 13:13:17 +01:00
Ulrich Schreiner
347aa24785 remove Printf output and do a real removal of the repository in the datastore 2015-02-04 15:13:23 +01:00
Ulrich Schreiner
0ed7ae7e3f impelement a delete of a repository 2015-02-04 14:42:24 +01:00
Kirill Zaitsev
6ca94970d6 Refresh only expired tokens 2015-02-04 13:18:46 +03:00
Alvaro
4b59896f4c Fix the tests.
Not very elegant, but now the strings have an extra space to allow putting the options there.
2015-01-30 10:07:55 +02:00
Alvaro
a6caa67c6f Be able to force docker to update the tags 2015-01-30 09:10:19 +02:00
Kirill Zaitsev
d225181a0f Refresh tokens before any requests to remote 2015-01-27 02:33:27 +03:00
Uchio KONDO
6699770e76 Fix loop to be consistent with the others 2015-01-26 16:20:53 +09:00
Uchio KONDO
e4efc039c9 Merge remote-tracking branch 'origin/master' 2015-01-26 15:51:09 +09:00
Brad Rydzewski
7c13fdac79 Merge pull request #846 from Bugagazavr/gitlab-ouath
Gitlab oauth login
2015-01-25 22:42:14 -08:00
Brad Rydzewski
35acc48dd1 Merge pull request #848 from bradrydzewski/master
vendored flowdock dependency
2015-01-25 22:39:23 -08:00
Brad Rydzewski
6add452168 vendored flowdock dependency 2015-01-25 22:35:14 -08:00
Uchio KONDO
bcb8b17c32 Get github orgs over 30 2015-01-26 14:56:30 +09:00
Kirill Zaitsev
f47ab27702 Gitlab oauth login 2015-01-23 22:28:24 +03:00
Ke Zhu
25f1e24ce0 publish npm package if not exist on registry #799 2015-01-22 20:42:32 -05:00
Ke Zhu
d860133d28 npm publish only when version not exist 2015-01-20 10:32:49 -05:00
Brad Rydzewski
b44bdd7ac7 Merge pull request #826 from mattbostock/per_plugin_registration
Per-remote open registration
2015-01-16 22:04:51 -08:00
Brad Rydzewski
3e8fdf0ea7 Merge pull request #788 from gregory90/docker-publish-pull
Always pull newest base image when using docker publish plugin
2015-01-16 21:40:41 -08:00
Matt Bostock
307aed12bc Move open registration setting into remote plugins
...so that it's possible to enable or disable open registration on a
per-remote basis.

For example, the `DRONE_REGISTRATION_OPEN` environment variable now
becomes `DRONE_GITHUB_OPEN` when using GitHub as a remote.

The default for open registration in this commit is `false` (disabled),
which matches the existing behaviour.

This is useful if you need to support both public and private remotes,
e.g. GitHub.com and GitHub Enterprise, where you trust all of the
private users and want to allow open registration for those but would
not want all GitHub.com users to run builds on your server.

Tested with GitHub and GitLab.
2015-01-16 22:04:24 +00:00
Ørjan Bruland
570a23f952 Use Slug instead of Name for Bitbucket repos. 2015-01-16 17:36:56 +01:00
Dan Carley
8fa473b07a Support org whitelists for GitHub+GHE remotes
Allow the GitHub and GitHub Enterprise remotes to restrict who can login
based on a user's organisation membership. This can be used as a safe
addition to open registration and also ensures that access is revoked when a
user is subsequently removed from the org. The default is not to restrict at
all.
2015-01-15 17:05:53 +00:00
Dan Carley
789adf90e4 Add test for GitHub remote Authorize()
To test that it correctly authorises a valid user, prior to me extending it.
This only tests the happy path because simulating oAuth failures is going
to be quite hard at this stage.
2015-01-15 14:54:27 +00:00
Dan Carley
a608f5ef82 Add test for GitHub remote GetOrgs() helper
I'm about to re-use this in another helper, so test that it works as
expected. Also fix the inline documentation which was copied from
`GetOrgRepos`.
2015-01-15 14:54:27 +00:00
Dan Carley
86b0329d57 Change org name in GitHub testdata
The example JSON taken from GitHub's API documentation doesn't indicate that
`login` is the name of an organisation rather than a user. Change it to
something that looks more like an org, because it will make a test that I'm
about to add more readable. The endpoint name changes accordingly.
2015-01-15 14:54:26 +00:00
Brad Rydzewski
27640db7a3 fixed dep in docker_test.go 2015-01-13 23:24:23 -08:00
Brad Rydzewski
97d80a43b7 fixed dep issue 2015-01-13 23:18:31 -08:00
Brad Rydzewski
ff127f0349 webhook payload should include the host URL 2015-01-13 21:57:30 -08:00
Brad Rydzewski
1627d5f5da Merge pull request #802 from Bugagazavr/bintray
Bintray
2015-01-13 09:10:50 -08:00
Kirill Zaitsev
ce5d4edca5 Bintray plugin 2015-01-12 16:50:59 +03: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
Cédric Krier
cb6ade6919 Missing URL for bitbucket Repo 2015-01-11 02:13:12 +01:00
Grzegorz Graczyk
c90303aaf7 add --pull to docker build in docker publish plugin 2015-01-07 16:27:24 +01:00
Grzegorz Graczyk
262c0d66c0 check if tag wasn't used for image building 2015-01-05 12:12:37 +01: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
7898103663 Add Dropbox plugin 2014-12-25 17:32:59 +09:00
Gary Borton
d4434c2a27 Make Heroku destination refspec more specific. 2014-12-16 04:04:27 -05:00
Brad Rydzewski
01ca940add Merge pull request #732 from msteinert/gitlab-verify-skip
Add Gitlab certificate verification configuration
2014-12-14 23:21:11 -08:00
Brad Rydzewski
e70c8d5c75 Merge pull request #755 from Bugagazavr/katoim
Added KatoIM support
2014-12-13 13:22:22 -08:00
Amanda Cameron
74f574f864 Fix IRC notification to use .Quit() instead of .Disconnect() 2014-12-13 10:23:44 -05:00
Amanda Cameron
1236d44bfc Fix the IRC notification plugin. 2014-12-13 09:48:56 -05:00
Kirill Zaitsev
3d244fcdae Added KatoIM support 2014-12-13 13:01:21 +03:00
Michael Steinert
d1099bcf53 Add Gitlab certificate verification configuration
Requires Bugagazavr/go-gitlab-client@4e00e40109
2014-12-09 10:16:59 -06:00
Ke Zhu
1cb586dfbc use api key for deployment to heroku 2014-12-07 10:15:01 -05:00
Pierre Kircher
fdd4547b1c plugin skeleton for deis
fixed test cases
2014-11-27 23:40:47 +00:00
Christopher Brickley
270ce52b76 add gogs support 2014-11-18 21:50:05 -05:00
Brad Rydzewski
789435d06d Merge pull request #715 from bradrydzewski/master
fix for #713, match branches with wildcard
2014-11-18 15:12:57 -08:00
Brad Rydzewski
f15cc20b5d fix for #713, match branches with wildcard 2014-11-18 14:09:30 -08:00
Brad Rydzewski
0af15d502c Merge pull request #614 from marksteve/update-slack
Update Slack plugin config (Closes #612)
2014-11-17 21:49:23 -08:00
Brad Rydzewski
0dce99f5f4 instructs Drone to ignore cert verification if self-signed 2014-11-17 11:18:58 -08:00
Mark Steve Samson
7c27628976 Update Slack plugin config (Closes #612) 2014-11-17 21:22:04 +08:00
ap4y
65f938888e Add plain text fallback messages for slack plugin 2014-11-11 17:18:18 +13:00
epipho
fb254e3f2c docker_version can now be left blank to automatically download and
install the latest available. Docker client will not be installed if it
is already present in the build container.
2014-11-06 22:37:57 -05:00
Christopher Brickley
22698625ed swap url and linktext positions for slack 2014-11-04 14:39:33 -05:00
Brad Rydzewski
5022db8d55 updated unit tests to account for quoted env vars 2014-11-01 11:41:02 -07:00
Brad Rydzewski
3642c903c5 using %q for quoting ssh command 2014-10-28 20:59:13 -07:00
Brad Rydzewski
13fedafc59 Merge pull request #621 from nils-werner/ssh-quotes
Wrap ssh cmd in quotes
2014-10-28 20:57:25 -07:00
Kirill Zaitsev
c7649e15b1 Add gitlab repo url 2014-10-28 03:21:19 +03:00
Brad Rydzewski
2872b3ce4a Merge pull request #613 from ciarand/master
Adjust Slack message format to match HipChat's
2014-10-26 12:45:39 -07:00
Nils Werner
3fa78ac088 Fix failing unittest 2014-10-25 15:04:22 +02:00
Brad Rydzewski
1fd1c5e292 fixe #620 2014-10-24 08:52:42 -07:00
Nils Werner
7d9e74e950 Wrap ssh cmd in quotes to prevent execution of &&-chained commands on local machine 2014-10-24 16:19:13 +02:00
Ciaran Downey
0a0151fa5e Adjust Slack message format to match HipChat's
Also add some tests for formatting. See #586.
2014-10-22 22:26:14 -07:00
Andrew Vos
286d5fe94c Fix incorrect drone branch for pull requests
Fixes #607
2014-10-22 11:56:06 +01:00
Brad Rydzewski
4f30e1388c only generate repo token or key if not exists 2014-10-22 01:02:14 -07:00
Brad Rydzewski
273755d2a0 Merge pull request #603 from gregory90/fix-commit-author-bitbucket
Fix commit author email for bitbucket
2014-10-22 00:56:00 -07:00