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 potential null pointer in lightweight checkout and support fetching Jenkinsfile from directory #54

Merged
merged 5 commits into from
Sep 18, 2019
Merged

Conversation

jetersen
Copy link
Member

@jetersen jetersen commented Sep 10, 2019

As project can be nullable due to it's transient nature it is safer to use projectPath

I also updated lastModified to use the commit date for the SCMFileSystem

@jetersen jetersen marked this pull request as ready for review September 11, 2019 00:09
@jetersen
Copy link
Member Author

@stephenc Would you mind taking a look :)

I might be able to throw a similar PR over to https://github.com/jenkinsci/gitea-plugin/blob/master/src/main/java/org/jenkinsci/plugin/gitea/GiteaSCMFile.java :)

Copy link
Member

@stephenc stephenc left a comment

Choose a reason for hiding this comment

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

LGTM (though I am not familiar with the finer print of the gitllab api)

👍 to a PR for gitea

@jetersen
Copy link
Member Author

@baymac
Copy link
Member

baymac commented Sep 11, 2019

Thanks @Casz for fixing this. LGTM.

@jetersen jetersen added the enhancement New feature or request label Sep 11, 2019
@jetersen
Copy link
Member Author

needs testing as lightweight checkout still fails for merge requests.

@jetersen jetersen merged commit 835136a into jenkinsci:master Sep 18, 2019
@jetersen jetersen deleted the fix/LightWeightCheckout branch September 18, 2019 14:26
@baymac
Copy link
Member

baymac commented May 19, 2020

@jetersen Light checkout doesn't work as expected for MRs. https://issues.jenkins-ci.org/browse/JENKINS-62343?focusedCommentId=390912&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-390912 Could you fix it or point in the direction to fix it?

@baymac
Copy link
Member

baymac commented May 26, 2020

@jetersen Pinging again to get updates on this. FYI light weight checkout works in bitbucket branch source and not in gitlab branch source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants