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