@@ -71,7 +71,7 @@ class RunLocalCommand extends RunBaseCommand {
71
71
async runImpl ( request ) {
72
72
const { pipelineName } = request ;
73
73
const {
74
- branch, userYamlDescriptor, variables, noCache, resetVolume, noCfCache, enableNotifications, trigger,
74
+ branch, userYamlDescriptor, variables, noCache, resetVolume, noCfCache, enableNotifications, trigger, debug ,
75
75
} = request . options ;
76
76
const localVolume = this . argv [ 'local-volume' ] === true ?
77
77
path . join ( DEFAULTS . CODEFRESH_PATH , pipelineName ) : this . argv [ 'local-volume' ] ;
@@ -113,10 +113,12 @@ class RunLocalCommand extends RunBaseCommand {
113
113
console . log ( `Running pipeline: ${ pipelineName } ` ) ;
114
114
115
115
return new Promise ( ( resolve , reject ) => {
116
- const eventEmitter = this . docker . run ( DEFAULTS . ENGINE_IMAGE , [ ] , undefined , _ . mergeWith ( {
116
+ const eventEmitter = this . docker . run ( DEFAULTS . ENGINE_IMAGE , [ ] , undefined , _ . mergeWith ( {
117
117
Env : [
118
+ ...( debug ? [ 'PIPELINE_DEBUG_MODE=true' ] : [ ] ) ,
118
119
`ACCESS_TOKEN=${ currentContext . token } ` ,
119
- `PIPELINE_ID=${ pipelineName } ` , `BRANCH=${ branch } ` ,
120
+ `PIPELINE_ID=${ pipelineName } ` ,
121
+ `BRANCH=${ branch } ` ,
120
122
`CF_HOST=${ currentContext . url } ` ,
121
123
'DOCKER_SOCKET_PATH=/var/run/docker.sock' ,
122
124
] ,
0 commit comments