master
Josha von Gizycki 3 years ago
parent 4c070a3745
commit 3873c8ae6d

@ -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))

Loading…
Cancel
Save