Commit 47aadb47 authored by Kamil Trzciński's avatar Kamil Trzciński

Fixed Windows Batch script when builds are located on different drive

parent 1be73159
......@@ -9,6 +9,7 @@ v 0.4.0
- Change default log level to warning
- Make selection of forward or back slashes dependent by shell not by system
- Prevent runner to be stealth if we reach the MaxTraceOutputSize
- Fixed Windows Batch script when builds are located on different drive
- Fixed Windows runner
- Fixed installation scripts path
- Fixed wrong architecture for i386 debian packages
......
......@@ -33,13 +33,13 @@ func (b *CmdShell) writeCloneCmd(w io.Writer, build *common.Build, dir string) {
b.writeCommandChecked(w, "rd /s /q \"%s\" 2> NUL 1>NUL", dir)
b.writeCommandChecked(w, "md \"%s\"", dir)
b.writeCommandChecked(w, "git clone \"%s\" \"%s\"", build.RepoURL, dir)
b.writeCommandChecked(w, "cd \"%s\"", dir)
b.writeCommandChecked(w, "cd /D \"%s\"", dir)
}
func (b *CmdShell) writeFetchCmd(w io.Writer, build *common.Build, dir string) {
b.writeCommand(w, "IF EXIST \"%s\\.git\" (", dir)
b.writeCommand(w, "echo Fetching changes...")
b.writeCommandChecked(w, "cd \"%s\"", dir)
b.writeCommandChecked(w, "cd /D \"%s\"", dir)
b.writeCommandChecked(w, "git clean -fdx")
b.writeCommandChecked(w, "git reset --hard > NUL")
b.writeCommandChecked(w, "git remote set-url origin \"%s\"", build.RepoURL)
......
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