@@ -2091,7 +2091,13 @@ class PipelineContext {
20912091 String threadsMsg = ' '
20922092 if (prettyCmd. contains(' __bpipe_lazy_resource_threads__' )) {
20932093 prettyCmd = prettyCmd. replaceAll(' __bpipe_lazy_resource_threads__' , " ${ ansi().fgGreen()} \\\$ {threads}${ ansi().fgDefault()} " )
2094- threadsMsg = " ${ ansi().bold()} Note:${ ansi().boldOff()} ${ ansi().fgGreen()} \$ {threads}${ ansi().fgDefault()} will be assigned at runtime based on available concurrency"
2094+ threadsMsg = " ${ ansi().bold()} Note:${ ansi().boldOff()} ${ ansi().fgGreen()} \$ {threads}${ ansi().fgDefault()} will be assigned at runtime based on available concurrency\n "
2095+ }
2096+
2097+ String memoryMsg = " "
2098+ if (prettyCmd. contains(' __bpipe_lazy_resource_memory__' )) {
2099+ prettyCmd = prettyCmd. replaceAll(' __bpipe_lazy_resource_memory__' , " ${ ansi().fgGreen()} \\\$ {memory}${ ansi().fgDefault()} " )
2100+ memoryMsg = " ${ ansi().bold()} Note:${ ansi().boldOff()} ${ ansi().fgGreen()} \$ {memory}${ ansi().fgDefault()} will be assigned based on configuration\n "
20952101 }
20962102
20972103 String msg = branch. name ? " Stage $stageName in branch $branch . name would execute:\n\n $prettyCmd " : " Would execute $prettyCmd "
@@ -2107,7 +2113,7 @@ class PipelineContext {
21072113 if (configObject?. containsKey(' container' ) && configObject. container) {
21082114 ConfigObject container = configObject[' container' ]
21092115 if (container)
2110- containerMsg = " Will execute in container: " + container + condaInfo
2116+ containerMsg = " Will execute in container: " + container + condaInfo + ' \n '
21112117 }
21122118 else {
21132119 if (condaInfo)
@@ -2117,20 +2123,20 @@ class PipelineContext {
21172123 println msg
21182124
21192125 println threadsMsg
2126+
2127+ if (memoryMsg)
2128+ println memoryMsg
21202129
21212130 if (containerMsg)
21222131 println containerMsg
2123- String memoryMsg = " "
2124- if (prettyCmd. contains(' __bpipe_lazy_resource_memory__' )) {
2125- prettyCmd = prettyCmd. replaceAll(' __bpipe_lazy_resource_memory__' , " ${ ansi().fgGreen()} \\\$ {memory}${ ansi().fgDefault()} " )
2126- memoryMsg = " ${ ansi().bold()} Note:${ ansi().boldOff()} ${ ansi().fgGreen()} \$ {memory}${ ansi().fgDefault()} will be assigned at runtime"
2132+
2133+ if (config) {
2134+ println (" Config" . padRight(12 ) + " : " + config)
21272135 }
2128- if (memoryMsg)
2129- println memoryMsg
21302136
2131- for (key in [' Executor' ,' Memory' ,' Walltime' ,' Modules' ]) {
2137+ for (key in [' Executor' ,' Queue ' , ' Memory' ,' Walltime' ,' Modules' ]) {
21322138 if (configObject. containsKey(key. toLowerCase()))
2133- println ((key. padRight(12 )) + " : " + configObject[key. toLowerCase()])
2139+ println ((key. take( 11 ) . padRight(12 )) + " : " + configObject[key. toLowerCase()])
21342140 }
21352141
21362142 println " \n ${ ansi().fgBlue()} Waiting for changes or <enter> to continue ....${ ansi().fgDefault()} \n "
@@ -2153,7 +2159,8 @@ class PipelineContext {
21532159
21542160 log. info " Command $c. id in branch $branch failed with exit code $c. exitCode "
21552161
2156- throw new CommandFailedException (" Command $c. id in stage $stageName failed with exit status = $c. exitCode : \n\n $c. command " , this , c)
2162+ String message = " Command $c. id in stage $stageName failed with exit status = $c. exitCode : \n\n $c. command "
2163+ throw new CommandFailedException (message, this , c)
21572164 }
21582165
21592166 if (! this . probeMode)
0 commit comments