@@ -71,7 +71,7 @@ class RunLocalCommand extends RunBaseCommand {
7171 async runImpl ( request ) {
7272 const { pipelineName } = request ;
7373 const {
74- branch, userYamlDescriptor, variables, noCache, resetVolume, noCfCache, enableNotifications, trigger,
74+ branch, userYamlDescriptor, variables, noCache, resetVolume, noCfCache, enableNotifications, trigger, debug ,
7575 } = request . options ;
7676 const localVolume = this . argv [ 'local-volume' ] === true ?
7777 path . join ( DEFAULTS . CODEFRESH_PATH , pipelineName ) : this . argv [ 'local-volume' ] ;
@@ -113,10 +113,12 @@ class RunLocalCommand extends RunBaseCommand {
113113 console . log ( `Running pipeline: ${ pipelineName } ` ) ;
114114
115115 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 ( {
117117 Env : [
118+ ...( debug ? [ 'PIPELINE_DEBUG_MODE=true' ] : [ ] ) ,
118119 `ACCESS_TOKEN=${ currentContext . token } ` ,
119- `PIPELINE_ID=${ pipelineName } ` , `BRANCH=${ branch } ` ,
120+ `PIPELINE_ID=${ pipelineName } ` ,
121+ `BRANCH=${ branch } ` ,
120122 `CF_HOST=${ currentContext . url } ` ,
121123 'DOCKER_SOCKET_PATH=/var/run/docker.sock' ,
122124 ] ,
0 commit comments