Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated github-pages with git-publish #782

Merged
merged 3 commits into from
Apr 9, 2017

Conversation

sormuras
Copy link
Member

@sormuras sormuras commented Apr 8, 2017

Overview

Replace deprecated github-pages with git-publish

CloudBees Jenkins build task needs to be changed, @marcphilipp

Replace "githubPages" with "gitPublish".


I hereby agree to the terms of the JUnit Contributor License Agreement.

Copy link
Member

@marcphilipp marcphilipp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to execute ./gradlew gitPublishPush -Dorg.ajoberstar.grgit.auth.username=$GITHUB_TOKEN (as stated here) but that fails with an error:

:documentation:asciidoctor
:prepareDocsForUploadToGhPages
:createCurrentDocsFolder SKIPPED
:gitPublishReset FAILED
:gitPublishClose FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':gitPublishReset'.
> Ambiguous method overloading for method org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider#<init>.
  Cannot resolve which method to invoke for [class java.lang.String, null] due to overlapping prototypes between:
        [class java.lang.String, class java.lang.String]
        [class java.lang.String, class [C]

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':gitPublishClose'.
> Could not get unknown property 'repo' for object of type org.ajoberstar.gradle.git.publish.GitPublishExtension.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
==============================================================================

BUILD FAILED

Seems to be a known bug: ajoberstar/grgit#153.

build.gradle Outdated
@@ -3,12 +3,14 @@ import java.text.SimpleDateFormat
buildscript {
repositories {
// mavenLocal()
jcenter()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need jcenter because we already use Gradle's plugin repo below.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

@marcphilipp marcphilipp merged commit 34cdfab into master Apr 9, 2017
@marcphilipp marcphilipp deleted the upgrade_to_gradle-git-publish branch April 9, 2017 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants