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

Migrate from gradle to pom #21

Merged
merged 9 commits into from
Nov 21, 2020
Merged

Migrate from gradle to pom #21

merged 9 commits into from
Nov 21, 2020

Conversation

sue445
Copy link
Contributor

@sue445 sue445 commented Nov 21, 2020

I want to release new version, but failed...

$ ./gradlew publish
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :publishMavenJpiPublicationToJenkinsRepository FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':publishMavenJpiPublicationToJenkinsRepository'.
> Failed to publish publication 'mavenJpi' to repository 'jenkins'
   > Could not PUT 'https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/yaml-axis/0.2.3/yaml-axis-0.2.3.hpi'. Received status code 401 from server: Unauthorized

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

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 24s
11 actionable tasks: 4 executed, 7 up-to-date

I think credential in ~/.gradle/gradle.properties doesn't pass to publishMavenJpiPublicationToJenkinsRepository. So I migrate to pom.xml

Actually, snapshot release is successful from mvn release:perform

https://repo.jenkins-ci.org/snapshots/org/jenkins-ci/plugins/yaml-axis/0.2.3-SNAPSHOT/

@sue445 sue445 force-pushed the feature/pom branch 5 times, most recently from 7b608e0 to 81a75be Compare November 21, 2020 10:02
@sue445 sue445 marked this pull request as ready for review November 21, 2020 10:13
@sue445 sue445 merged commit 10a321f into master Nov 21, 2020
@sue445 sue445 deleted the feature/pom branch November 21, 2020 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant