|
|
@ -83,13 +83,14 @@ class GitRunner {
|
|
|
|
logger.info("build ${ctx.buildId}: looking for scripts $scriptFiles in $scriptsDir/")
|
|
|
|
logger.info("build ${ctx.buildId}: looking for scripts $scriptFiles in $scriptsDir/")
|
|
|
|
|
|
|
|
|
|
|
|
scriptFiles.forEach { script ->
|
|
|
|
scriptFiles.forEach { script ->
|
|
|
|
if (shFile(ctx, script).exists()) {
|
|
|
|
val scriptFile = shFile(ctx, script)
|
|
|
|
|
|
|
|
if (scriptFile.exists()) {
|
|
|
|
logger.info("build ${ctx.buildId}: found script $script, running it")
|
|
|
|
logger.info("build ${ctx.buildId}: found script $script, running it")
|
|
|
|
|
|
|
|
|
|
|
|
ctx.logFile.append("\nRunning build file: $script\n")
|
|
|
|
ctx.logFile.append("\nRunning build file: $script\n")
|
|
|
|
|
|
|
|
|
|
|
|
val scriptProcess = processBuilder(ctx.config, ctx.logFile, ctx.rev)
|
|
|
|
val scriptProcess = processBuilder(ctx.config, ctx.logFile, ctx.rev)
|
|
|
|
.command("$scriptsDir/$script")
|
|
|
|
.command(scriptFile.absolutePath)
|
|
|
|
.directory(ctx.workspace.toFile())
|
|
|
|
.directory(ctx.workspace.toFile())
|
|
|
|
.start()
|
|
|
|
.start()
|
|
|
|
handles.add(Handle(scriptProcess.toHandle(), ctx.buildId))
|
|
|
|
handles.add(Handle(scriptProcess.toHandle(), ctx.buildId))
|
|
|
|