So I've been setting up a new pipeline job, and since we use private branches that are then merged into release branches, I added a [$class: 'ChangelogToBranch', options: [compareRemote: "jordan/master", compareTarget : "master"]] to my checkout.
This consistently results in Using 'Changelog to branch' strategy. fatal: bad revision '^jordan/master/master' ERROR: Unable to retrieve changeset hudson.plugins.git.GitException <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>: Error launching git whatchanged at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:856) <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute&entity=method> at hudson.plugins.git.GitSCM.computeChangeLog(GitSCM.java:1223) <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.computeChangeLog&entity=method> at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1143) <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method> at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109) <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout&entity=method> at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83) <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run&entity=method> at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73) <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run&entity=method> at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47) <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call&entity=method> at hudson.security.ACL.impersonate(ACL.java:221) <http://stacktrace.jenkins-ci.org/search/?query=hudson.security.ACL.impersonate&entity=method> at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44) <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run&entity=method> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.Executors$RunnableAdapter.call&entity=method> at java.util.concurrent.FutureTask.run(FutureTask.java:266) <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run&entity=method> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor.runWorker&entity=method> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run&entity=method> at java.lang.Thread.run(Thread.java:745) <http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run&entity=method> And yeah, '^jordan/master/master' ain't no revision I've ever heard of. Surely I'm doing something wrong? But looking at the source <https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/ChangelogToBranchOptions.java#L38>, I can't figure out how this is supposed to work? Did it ever? Why is git whatchanged and not git log? Is this a git koan? Cus i'm not feeling enlightened. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b9ef10e4-8813-4dfb-8357-84b203a5f90d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
