-
Notifications
You must be signed in to change notification settings - Fork 122
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
Logic change in how paths are validated #545
Comments
Resources outside of the project path is something we should not check. In the meantime is perfectly safe to use v2.1.0 of the plugin with latest Asciidoctorj v2.5.1. |
Since it can affect Jenkins users I am going to do a quick 2.2.1 release. |
Is it accurate to say that the Maven plugin excludes files that begin with underscore by default? If so, perhaps this should be mentioned in the docs. I looked for it, but I couldn't find anything that clearly stated what the default behavior is. (This is related to this issue I came across this week: asciidoctor/asciidoctor.org#800). |
For the maven plugin we have a note in the |
Aha. I see it now. I think this is so central to how the plugin (specifically the process-asciidoc goal) works that I think it should be in a non-normative section. That means either putting this information in the preamble, or a section above "Setup" named "How files are processed". There, it can say that this plugin looks for all AsciiDoc files in the specified directory, but ignores files that are considered non-public, such as internal include files and hidden files. Do you think we should start a separate issue to track it? |
Sure! Just created it |
Thank you for taking your time to talk with us!
What is this issue about?
Description
I'm having some issues with AsciiDoctor not being able to find
generated-docs
during my Jenkins build. This seems to be as Jenkins sometimes truncates the workspace folder in the path to start with_
. Previously this was not a problem as asciiDoctor only checks the file name for an_
prefix, but after #535 every part of the path is checked for for_
prefixes.old code vs new code
an example path from a failed build:
/var/lib/jenkins/workspace/_service_name_develop/service-name-service/src/docs/asciidoc
Was this intentional? If not can this be reverted to the previous logic?
Environment information
The text was updated successfully, but these errors were encountered: