File tree 2 files changed +28
-0
lines changed
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
+ * **1.2.3 ** (29.03.2015)
5
+ * support for Basic Auth username and password (GitHub tokens!)
4
6
* **1.2.2 ** (21.03.2015)
5
7
* use newer GrGit (and JGit) version with some bugfixes
6
8
* start using Coveralls
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ All interactive authorization mechanisms are provided by `grgit <https://github.
8
8
see `authorization docs <http://ajoberstar.org/grgit/docs/groovydoc/org/ajoberstar/grgit/auth/AuthConfig.html >`_
9
9
for more information.
10
10
11
+ Interactive mode is default option, switched off by using any special properties described below.
12
+
11
13
SSH Key/password
12
14
----------------
13
15
@@ -51,3 +53,27 @@ dynamically using custom Gradle tasks right before release. To change credential
51
53
task release {
52
54
dependsOn loadKeyPassword
53
55
}
56
+
57
+
58
+ HTTP Basic Auth/GitHub tokens
59
+ -----------------------------
60
+
61
+ Same as with SSH keys, ``axion-release-plugin``gives option to set basic auth data when connecting to repository via
62
+ HTTP. This is especially useful when using `GitHub OAuth tokens <https://help.github.com/articles/git-automation-with-oauth-tokens/>`_.
63
+
64
+ Command line
65
+ ^^^^^^^^^^^^
66
+
67
+ Use ``release.customUsername `` and ``release.customPassword `` properties to set username and password that will be provided
68
+ when using Basic Auth. If password is not set, it defaults to empty string.
69
+
70
+ Dynamic
71
+ ^^^^^^^
72
+
73
+ Username and password can be provided in runtime, just before push is made via ``scmVersion.repository.customUsername ``
74
+ and ``scmVersion.repository.customPassword `` properties::
75
+
76
+
77
+ task loadGitHubToken << {
78
+ scmVersion.repository.customUsername = loadGitHubTokenFromSomewhere()
79
+ }
You can’t perform that action at this time.
0 commit comments