-
Notifications
You must be signed in to change notification settings - Fork 93
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
Conversation
@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 :) |
There was a problem hiding this 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
The gitlab API does not offer a whole lot of file typing like GitHub API does This is what GitLab file options provide https://gitlab.com/api/v4/projects/13555154/repository/tree?ref=folder See API docs here: |
Thanks @Casz for fixing this. LGTM. |
needs testing as lightweight checkout still fails for merge requests. |
@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? |
@jetersen Pinging again to get updates on this. FYI light weight checkout works in bitbucket branch source and not in gitlab branch source. |
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 theSCMFileSystem