I tried with your setup (multiple blacklisting items and environment
variable) and was not able to replicate.

Below is my material and parameter configuration.

 <params>
        <param name="Branch">*branch/2018_07*</param>
      </params>
      <environmentvariables>
        <variable name="branch">
          <value>#{Branch}</value>
        </variable>
      </environmentvariables>
      <materials>
        <svn url="http://localhost/svn/myrepo/#{Branch}";
username="username" encryptedPassword="password" dest="svn_repo"
materialName="svn">
          <filter>
            <ignore pattern="#{Branch}/Artwork/**/*" />
            <ignore pattern="#{Branch}/Build/**/*" />
            <ignore pattern="#{Branch}/BuildBotScripts/**/*" />
            <ignore pattern="#{Branch}/External Tools/**/*" />
            <ignore pattern="#{Branch}/HotFixes/**/*" />
            <ignore pattern="#{Branch}/IDE/**/*" />
            <ignore pattern="#{Branch}/Installers/**/*" />
            <ignore pattern="#{Branch}/Internal Tools/**/*" />
            <ignore pattern="#{Branch}/Notes/**/*" />
            <ignore pattern="#{Branch}/WebFramework/**/*" />
            <ignore pattern="#{Branch}/XojoPlugins/**/*" />
            <ignore pattern="#{Branch}/_build/**/*" />
            <ignore pattern="#{Branch}/foo" />
          </filter>
        </svn>
      </materials>


Here is my repo structure:

svn version: version 1.9.3 (r1718519)

Repository Root: file:///var/lib/svn/myrepo

|-- a
|-- bar
|-- branch
|   `-- 2018_07
|       |-- Artwork
|       |   `-- artwork.xml
|       |-- Build
|       |-- BuildBotScripts
|       |-- External\ Tools
|       |-- HotFixes
|       |-- IDE
|       |-- Installers
|       |-- Internal\ Tools
|       |-- Notes
|       |-- WebFramework
|       |-- XojoPlugins
|       |-- _build
|       |-- bar
|       |-- foo
|       |-- foobar
|       |-- xyz.txt
|       `-- zzz
`-- trunk
    `-- blah

With above blacklisting, the pipeline never triggered if I made any commit
to the ignore pattern.
However, If I add " /myrepo" (based on my repository url), the pipeline got
triggered and none of the blacklisting items were honoured.

For example: <ignore pattern="/myrepo/#{Branch}/Artwork/**/*" />

As mentioned in my previous response, ignore pattern path is relative to
the branch and not to the repository root.

Can you run "svn info" on your repo and check the correct repository root.
For instance, in my case it was  "file:///var/lib/svn/myrepo" (repository
url: http://localhost/svn/myrepo/ ) and if I provide complete path,
blacklisting won't work.

Hope this helps.

On Fri, Aug 3, 2018 at 1:33 AM Greg O'Lone <[email protected]> wrote:

> Ok, I was able to confirm my suspicion. I added a / to the beginning of
> all of our entries and it only honors the last item in the list.
>
> so our current blacklist that looks like this:
>
> /branches/RBUS/#{BRANCH}/_build/**/*,/branches/RBUS/#{BRANCH}/Artwork/**/*,/branches/RBUS/#{BRANCH}/Build/**/*,/branches/RBUS/#{BRANCH}/BuildBotScripts/**/*,/branches/RBUS/#{BRANCH}/External
> Tools/**/*,/branches/RBUS/#{BRANCH}/HotFixes/**/*,/branches/RBUS/#{BRANCH}/IDE/**/*,/branches/RBUS/#{BRANCH}/Installers/**/*,/branches/RBUS/#{BRANCH}/Internal
> Tools/**/*,/branches/RBUS/#{BRANCH}/Notes/**/*,/branches/RBUS/#{BRANCH}/WebFramework/,/branches/RBUS/#{BRANCH}/BuildBotScripts/BuildMaster/master.cfg,/branches/RBUS/#{BRANCH}/XojoPlugins/Common/VersionResource.rc
>
> behaves as if it has a single entry that looks like this:
>
> /branches/RBUS/#{BRANCH}/XojoPlugins/Common/VersionResource.rc
>
> Now that file is the one that changes most commonly and in fact is updated
> and checked back in right in the pipeline so it's imperative that it is
> blacklisted because we end up with an endless loop otherwise, but it would
> also be nice if the rest of these items would be honored.
>
> Makes me wonder if only the last #{BRANCH} substitution is being done.
>
> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to