Commit 4ffbf105 authored by Kamil Trzciński's avatar Kamil Trzciński 🔴

Save builds in: builds/runner/0/group/repo/

parent b8379b3d
......@@ -122,10 +122,10 @@ func (b *Build) ProjectUniqueDir(sharedDir bool) string {
// for shared dirs path is constructed like this:
// <some-path>/runner-short-id/concurrent-id/group-name/project-name/
// ex.<some-path>/r01234567/0/group/repo/
// ex.<some-path>/01234567/0/group/repo/
if sharedDir {
dir = filepath.Join(
fmt.Sprintf("runner-%s", b.Runner.ShortDescription()),
fmt.Sprintf("%s", b.Runner.ShortDescription()),
fmt.Sprintf("%d", b.ProjectRunnerID),
dir,
)
......
......@@ -317,7 +317,7 @@ func init() {
common.RegisterExecutor("parallels", func() common.Executor {
return &ParallelsExecutor{
AbstractExecutor: executors.AbstractExecutor{
DefaultBuildsDir: "tmp/builds",
DefaultBuildsDir: "builds",
SharedBuildsDir: false,
DefaultShell: "bash",
ShellType: common.LoginShell,
......
......@@ -92,7 +92,7 @@ func init() {
common.RegisterExecutor("shell", func() common.Executor {
return &ShellExecutor{
AbstractExecutor: executors.AbstractExecutor{
DefaultBuildsDir: "tmp/builds",
DefaultBuildsDir: "builds",
SharedBuildsDir: true,
DefaultShell: common.GetDefaultShell(),
ShellType: common.LoginShell,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment