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

Fix invalid platform flag issue #60

Merged

Conversation

maksonlee
Copy link

Change-Id: I46f02494f90719ca89db2a1722cd5ed9a1951f18

@rsandell
Copy link
Member

is there an issue number for this? Your title suggests that there is an issue here?

@rsandell rsandell added the bug label Dec 10, 2019
@EricTsai-TW
Copy link

EricTsai-TW commented Dec 25, 2019

All of our repo jobs are dead with 1.12.0.
Platform column are all empty by default.
This line is added in job configuration: < manifestPlatform/>

[repo] $ repo init -u ssh://****** -b ****** -m ******.xml -p --current-branch --no-tags
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
Get ***********
fatal: invalid platform flag
java.io.IOException: Could not checkout
at hudson.plugins.repo.RepoScm.checkout(RepoScm.java:850)
at hudson.scm.SCM.checkout(SCM.java:505)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1205)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1853)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:427)
Skipped archiving because build is not successful

@zwx168238
Copy link

we got the same issue after upgrade repo plugin 1.12.0 , as workaround we must set platform value by hand

so , what's the plan to release 1.13.0 .

@rsandell
Copy link
Member

rsandell commented Jan 9, 2020

@erictsai53 @zwx168238 is there a ticket number? And does this proposed fix solve the issue?

@shadamik
Copy link

This bugfix seem inconsistent with the rest of the code. All other webform params are returned with Util.fixEmptyAndTrim() to make sure they are null if empty.

I would prefer

this.manifestPlatform = Util.fixEmptyAndTrim(manifestPlatform);

What do you think?

Change-Id: I46f02494f90719ca89db2a1722cd5ed9a1951f18
@maksonlee maksonlee force-pushed the fix-invalid-platform-flag-issue branch from 67c6ca0 to 572ddac Compare January 13, 2020 15:47
@maksonlee
Copy link
Author

maksonlee commented Jan 13, 2020

This bugfix seem inconsistent with the rest of the code. All other webform params are returned with Util.fixEmptyAndTrim() to make sure they are null if empty.

I would prefer

this.manifestPlatform = Util.fixEmptyAndTrim(manifestPlatform);

What do you think?

Done.

@rsandell rsandell merged commit 5a9a9c9 into jenkinsci:master Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants