■ ■ ■ ■ ■ ■
src/main/java/io/onedev/k8shelper/KubernetesHelper.java
| skipped 198 lines |
199 | 199 | | "@echo off", |
200 | 200 | | ":wait", |
201 | 201 | | "if exist \"" + markPrefix + ".skip\" (", |
202 | | - | " echo Skipping step ^\"" + escapedStepNames + "^\"...", |
| 202 | + | " echo " + TaskLogger.wrapWithAnsiNotice("Step ^\"" + escapedStepNames + "^\" is skipped"), |
203 | 203 | | " echo " + LOG_END_MESSAGE, |
204 | 204 | | " goto :eof", |
205 | 205 | | ")", |
206 | 206 | | "if exist \"" + markPrefix + ".error\" (", |
207 | | - | " echo Running step ^\"" + escapedStepNames + "^\"...", |
| 207 | + | " echo " + TaskLogger.wrapWithAnsiNotice("Running step ^\"" + escapedStepNames + "^\"..."), |
208 | 208 | | " type " + markPrefix + ".error", |
209 | 209 | | " copy /y nul " + markPrefix + ".failed > nul", |
210 | 210 | | " echo " + LOG_END_MESSAGE, |
| skipped 5 lines |
216 | 216 | | ":start", |
217 | 217 | | "cd " + getWorkspace().getAbsolutePath() |
218 | 218 | | + " && cmd /c " + setupScriptFile.getAbsolutePath() |
219 | | - | + " && cmd /c echo Running step ^\"" + escapedStepNames + "^\"..." |
| 219 | + | + " && cmd /c echo " + TaskLogger.wrapWithAnsiNotice("Running step ^\"" + escapedStepNames + "^\"...") |
220 | 220 | | + " && cmd /c " + stepScriptFile.getAbsolutePath(), |
221 | 221 | | "set exit_code=%errorlevel%", |
222 | 222 | | "if \"%exit_code%\"==\"0\" (", |
| 223 | + | " echo " + TaskLogger.wrapWithAnsiSuccess("Step ^\"" + escapedStepNames + "^\" is successful"), |
223 | 224 | | " copy /y nul " + markPrefix + ".successful > nul", |
224 | 225 | | ") else (", |
225 | 226 | | " copy /y nul " + markPrefix + ".failed > nul", |
| skipped 19 lines |
245 | 246 | | "done", |
246 | 247 | | "if [ -f " + markPrefix + ".skip ]", |
247 | 248 | | "then", |
248 | | - | " echo 'Skipping step \"" + escapedStepNames + "\"...'", |
| 249 | + | " echo '" + TaskLogger.wrapWithAnsiNotice("Step \"" + escapedStepNames + "\" is skipped") + "'", |
249 | 250 | | " echo " + LOG_END_MESSAGE, |
250 | 251 | | " exit 0", |
251 | 252 | | "fi", |
252 | 253 | | "if [ -f " + markPrefix + ".error ]", |
253 | 254 | | "then", |
254 | | - | " echo 'Running step \"" + escapedStepNames + "\"...'", |
| 255 | + | " echo '" + TaskLogger.wrapWithAnsiNotice("Running step \"" + escapedStepNames + "\"...") + "'", |
255 | 256 | | " cat " + markPrefix + ".error", |
256 | 257 | | " touch " + markPrefix + ".failed", |
257 | 258 | | " echo " + LOG_END_MESSAGE, |
| skipped 1 lines |
259 | 260 | | "fi", |
260 | 261 | | "cd " + getWorkspace().getAbsolutePath() |
261 | 262 | | + " && sh " + setupScriptFile.getAbsolutePath() |
262 | | - | + " && echo 'Running step \"" + escapedStepNames + "\"...'" |
| 263 | + | + " && echo '" + TaskLogger.wrapWithAnsiNotice("Running step \"" + escapedStepNames + "\"...") + "'" |
263 | 264 | | + " && sh " + stepScriptFile.getAbsolutePath(), |
264 | 265 | | "exitCode=\"$?\"", |
265 | 266 | | "if [ $exitCode -eq 0 ]", |
266 | 267 | | "then", |
| 268 | + | " echo '" + TaskLogger.wrapWithAnsiSuccess("Step \"" + escapedStepNames + "\" is successful") + "'", |
267 | 269 | | " touch " + markPrefix + ".successful", |
268 | 270 | | "else", |
269 | 271 | | " touch " + markPrefix + ".failed", |
| skipped 766 lines |