{"action":"created","issue":{"url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/66","labels_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/66/comments","events_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/66/events","html_url":"https://github.com/allegro/axion-release-plugin/issues/66","id":69128207,"number":66,"title":"Release not working in Jenkins - Push fails with message \"Nothing to push\"","user":{"login":"joergus","id":443874,"avatar_url":"https://avatars.githubusercontent.com/u/443874?v=3","gravatar_id":"","url":"https://api.github.com/users/joergus","html_url":"https://github.com/joergus","followers_url":"https://api.github.com/users/joergus/followers","following_url":"https://api.github.com/users/joergus/following{/other_user}","gists_url":"https://api.github.com/users/joergus/gists{/gist_id}","starred_url":"https://api.github.com/users/joergus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joergus/subscriptions","organizations_url":"https://api.github.com/users/joergus/orgs","repos_url":"https://api.github.com/users/joergus/repos","events_url":"https://api.github.com/users/joergus/events{/privacy}","received_events_url":"https://api.github.com/users/joergus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-04-17T12:20:00Z","updated_at":"2015-07-10T22:31:01Z","closed_at":"2015-07-10T22:31:01Z","body":"Executing `gradle release` via Jenkins is not working for me. I'm using gradle 2.3 and the jenkins git plugin 2.3.5. \r\n\r\nI can reproduce that on a development machine when executing a checkout of a certain revision as it is done by jenkins `git checkout -f eced05a5302fa1bc452f57d3accc504965157344`.\r\nI'm using the default git plugin.\r\nThe Exception is the following.\r\n```\r\n:release\r\nExecuting task ':release' (up-to-date check took 0.001 secs) due to:\r\n  Task has not declared any outputs.\r\nWorking on released version 0.3.2, nothing to release.\r\nPushing all to remote: origin\r\nThe following authentication options are allowed (though they may not be available): [HARDCODED, SSHAGENT, PAGEANT, INTERACTIVE]\r\n:release FAILED\r\n:release (Thread[main,5,main]) completed. Took 0.478 secs.\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':release'.\r\n> Problem pushing to remote.\r\n\r\n* Try:\r\nRun with --debug option to get more log output.\r\n\r\n* Exception is:\r\norg.gradle.api.tasks.TaskExecutionException: Execution failed for task ':release'.\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)\r\n\tat org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)\r\n\tat org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)\r\n\tat org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)\r\n\tat org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)\r\n\tat org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)\r\n\tat org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)\r\n\tat org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:306)\r\n\tat org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)\r\n\tat org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)\r\n\tat org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)\r\n\tat org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)\r\n\tat org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)\r\n\tat org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)\r\n\tat org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)\r\n\tat org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)\r\n\tat org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)\r\n\tat org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)\r\n\tat org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)\r\n\tat org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)\r\n\tat org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)\r\n\tat org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)\r\n\tat org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)\r\n\tat org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)\r\n\tat org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:169)\r\n\tat org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)\r\n\tat org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)\r\n\tat org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)\r\n\tat org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)\r\n\tat org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)\r\n\tat org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)\r\n\tat org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)\r\n\tat org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)\r\n\tat org.gradle.launcher.Main.doAction(Main.java:33)\r\n\tat org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)\r\n\tat org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)\r\n\tat org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)\r\n\tat org.gradle.launcher.GradleMain.main(GradleMain.java:23)\r\nCaused by: org.ajoberstar.grgit.exception.GrgitException: Problem pushing to remote.\r\n\tat org.ajoberstar.grgit.operation.PushOp.call(PushOp.groovy:117)\r\n\tat org.ajoberstar.grgit.operation.PushOp.call(PushOp.groovy)\r\n\tat java_util_concurrent_Callable$call.call(Unknown Source)\r\n\tat java_util_concurrent_Callable$call.call(Unknown Source)\r\n\tat org.ajoberstar.grgit.util.OpSyntaxUtil.tryOp(OpSyntaxUtil.groovy:45)\r\n\tat org.ajoberstar.grgit.Grgit.methodMissing(Grgit.groovy:175)\r\n\tat pl.allegro.tech.build.axion.release.infrastructure.git.GitRepository.callPush(GitRepository.groovy:80)\r\n\tat pl.allegro.tech.build.axion.release.infrastructure.git.GitRepository.push(GitRepository.groovy:76)\r\n\tat pl.allegro.tech.build.axion.release.infrastructure.git.GitRepository.push(GitRepository.groovy:72)\r\n\tat pl.allegro.tech.build.axion.release.domain.scm.ScmRepository$push$2.call(Unknown Source)\r\n\tat pl.allegro.tech.build.axion.release.infrastructure.GradleAwareScmService.push(GradleAwareScmService.groovy:30)\r\n\tat pl.allegro.tech.build.axion.release.domain.scm.ScmService$push$0.call(Unknown Source)\r\n\tat pl.allegro.tech.build.axion.release.domain.Releaser.pushRelease(Releaser.groovy:54)\r\n\tat pl.allegro.tech.build.axion.release.domain.Releaser$pushRelease$1.call(Unknown Source)\r\n\tat pl.allegro.tech.build.axion.release.ReleaseTask.release(ReleaseTask.groovy:16)\r\n\tat org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)\r\n\tat org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)\r\n\tat org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)\r\n\t... 44 more\r\nCaused by: org.eclipse.jgit.api.errors.TransportException: Nothing to push.\r\n\tat org.eclipse.jgit.api.PushCommand.call(PushCommand.java:160)\r\n\tat org.eclipse.jgit.api.PushCommand.call(PushCommand.java:79)\r\n\tat java_util_concurrent_Callable$call$0.call(Unknown Source)\r\n\tat org.ajoberstar.grgit.operation.PushOp.call(PushOp.groovy:114)\r\n\t... 66 more\r\nCaused by: org.eclipse.jgit.errors.TransportException: Nothing to push.\r\n\tat org.eclipse.jgit.transport.Transport.push(Transport.java:1197)\r\n\tat org.eclipse.jgit.api.PushCommand.call(PushCommand.java:156)\r\n\t... 69 more\r\n```\r\n\r\n\r\nAny ideas to get around that, or is there a fix required?"},"comment":{"url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/comments/120542267","html_url":"https://github.com/allegro/axion-release-plugin/issues/66#issuecomment-120542267","issue_url":"https://api.github.com/repos/allegro/axion-release-plugin/issues/66","id":120542267,"user":{"login":"adamdubiel","id":5269406,"avatar_url":"https://avatars.githubusercontent.com/u/5269406?v=3","gravatar_id":"","url":"https://api.github.com/users/adamdubiel","html_url":"https://github.com/adamdubiel","followers_url":"https://api.github.com/users/adamdubiel/followers","following_url":"https://api.github.com/users/adamdubiel/following{/other_user}","gists_url":"https://api.github.com/users/adamdubiel/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdubiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdubiel/subscriptions","organizations_url":"https://api.github.com/users/adamdubiel/orgs","repos_url":"https://api.github.com/users/adamdubiel/repos","events_url":"https://api.github.com/users/adamdubiel/events{/privacy}","received_events_url":"https://api.github.com/users/adamdubiel/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T22:31:01Z","updated_at":"2015-07-10T22:31:01Z","body":"`1.3.0` version with your change, @erichsend has been released. Sorry it took so long :) Now i can close this issue as well."}}