We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 79932c5 + 90da804 commit 030cc1bCopy full SHA for 030cc1b
keys.js
@@ -7,6 +7,7 @@ var path = require('path')
7
module.exports = {
8
setContext: function(context) {
9
this.branch = findBranch(context.job.project.branches, context.branch);
10
+ this.branch.privkey = getMasterPrivKey(context.job.project.branches);
11
},
12
whatIsMyPublicKey: function() {
13
var pubKey = this.branch.pubkey
@@ -42,3 +43,11 @@ function findBranch(branches, name) {
42
43
return branch;
44
}(name, foundBranch, branches))
45
}
46
+
47
+function getMasterPrivKey(branches) {
48
+ for (var i=0; i<branches.length; i++) {
49
+ if (branches[i].name === 'master') {
50
+ return branches[i].privkey
51
+ }
52
53
+}
0 commit comments