Skip to content

Commit 0e2112a

Browse files
committed
added runnerId to context, so strider-git can select ssh git clone implementation based on runner, e.g. docker runner
1 parent 3b034fc commit 0e2112a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

lib/job.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ Job.prototype = {
326326
phase: this.phase,
327327
job: this.job,
328328
branch: this.job.ref.branch,
329-
project: this.project
329+
project: this.project,
330+
331+
runnerId: this.config.branchConfig.runner.id
330332
};
331333

332334
return context;

test/test_run.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ describe('Integration', function () {
5353
}], { // config
5454
dataDir: '/tmp/',
5555
cachier: cachier,
56-
io: new EventEmitter()
56+
io: new EventEmitter(),
57+
branchConfig : { runner : { id : 'dummy' } }
5758
}, function (err) {
5859
if (err) return done(err)
5960
for (var name in called) {

0 commit comments

Comments
 (0)