• Icon: Suggestion Suggestion
    • Resolution: Fixed
    • None
    • Documentation (User)
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      The Build Artifacts documentation talks about 'regular expressions' although the page talks about Ant copy patterns. It'd be useful to have some complex examples. I'm having trouble getting a complex artifact pattern to work, and some examples might help, since I don't really know what's happening. It'd be great if you could actually have it show you what would match the results, but that's a nice-to-have.

            [BAM-2149] Build Artifacts - Complex Patterns

            Andrew added a comment -

            Docs updated by Ajay.

            Andrew added a comment - Docs updated by Ajay.

            AjayA added a comment -

            Hi Geoffrey,

            My apologies for the late response.

            Bamboo uses the Ant Task library, to copy and store artifacts.

            Unfortunately, the library doesn't facilitate for complex regex pattern matching - you can find more documentation regarding Ant file patters on this page|http://ant.apache.org/manual/dirtasks.html]

            I would suggest using a wild card match, such that -

            • dir = rest/target
            • pattern = */

            The Build Artifacts documentation talks about 'regular expressions' although the page talks about Ant copy patterns

            Yes, you are quite right about this - I have made the necessary corrections to our Bamboo docs.

            Regards,
            Ajay.

            AjayA added a comment - Hi Geoffrey, My apologies for the late response. Bamboo uses the Ant Task library, to copy and store artifacts. Unfortunately, the library doesn't facilitate for complex regex pattern matching - you can find more documentation regarding Ant file patters on this page|http://ant.apache.org/manual/dirtasks.html] I would suggest using a wild card match, such that - dir = rest/target pattern = * / The Build Artifacts documentation talks about 'regular expressions' although the page talks about Ant copy patterns Yes, you are quite right about this - I have made the necessary corrections to our Bamboo docs . Regards, Ajay.

            Geoffrey added a comment -

            Sure - a generator (enunciate.codehaus.org) generates a folder structure for a WAR that contains HTML, CSS, images, as well as WEB-INF/lib, WEB-INF/classes, etc.

            I wanted to pull out the html, css and images. Since the directory name contains a version, I started with:

            • dir = rest/target
            • pattern = **/*.html,**/*.css, **/img/*

            With the hopes that if that worked, I might be able to cut back the ** to something like rest-*/...

            When that didn't work, I tried something like:

            • dir = rest/target/rest-1.0-SNAPSHOT
            • pattern = *.html,img/*,*.css

            Geoffrey added a comment - Sure - a generator (enunciate.codehaus.org) generates a folder structure for a WAR that contains HTML, CSS, images, as well as WEB-INF/lib, WEB-INF/classes, etc. I wanted to pull out the html, css and images. Since the directory name contains a version, I started with: dir = rest/target pattern = **/*.html,**/*.css, **/img/* With the hopes that if that worked, I might be able to cut back the ** to something like rest-*/... When that didn't work, I tried something like: dir = rest/target/rest-1.0-SNAPSHOT pattern = *.html,img/*,*.css

            Andrew added a comment -

            Hi Geoffrey,

            Thanks for your feedback on the Bamboo documentation. I'll have a look at the page. Can I ask what sort of artifacts you are trying copy from your build?
            I can ask the support guys to give you a hand with your specific problem.

            Kind Regards,
            Andrew

            Andrew added a comment - Hi Geoffrey, Thanks for your feedback on the Bamboo documentation. I'll have a look at the page. Can I ask what sort of artifacts you are trying copy from your build? I can ask the support guys to give you a hand with your specific problem. Kind Regards, Andrew

              alui Andrew
              3cf8fb86066b Geoffrey
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: