gradle-profiler icon indicating copy to clipboard operation
gradle-profiler copied to clipboard

"git-checkout" parameter is not working properly

Open maxirosson opened this issue 4 years ago • 0 comments

I have the following scenario defined:

branch {
    cleanup-tasks = ["clean"]
    tasks = ["compileKotlin"]
    warm-ups = 2
}
master {
    cleanup-tasks = ["clean"]
    tasks = ["compileKotlin"]
    warm-ups = 2
    git-checkout = {
        cleanup = "master"
        build = "master"
    }
}

My goal is to compare the master branch code with any other branch.

But, when I execute gradle profiler, the latest master code is not used when executing the master scenario.

It seems that when gradle profiler is trying to switch to the master branch, it is not doing a pull or similar, because it says Your branch is ahead of 'origin/master' by 6 commits.

> Checking out master
Running command git checkout master
Switched to branch 'master'
Your branch is ahead of 'origin/master' by 6 commits.
  (use "git push" to publish your local commits)

I am running gradle profiler on circle ci.

maxirosson avatar Dec 10 '20 18:12 maxirosson