Relative Content

Tag Archive for powershellgitlabyamlpipeline

Make the pipeline fail if a specific sentence appears in the log – Find a substring, but ignore a specific substring

In my first question, the goal was to intentionally make the CI/CD pipeline fail if a transformation is not possible in the Web.Live.Config. I had to save the build in a variable. If a transformation is not possible,
the string "No element in the source document matches" appears in the log. But: Although there is no key with “connectionString” in the config files, strangely the string "No element in the source document matches '/configuration/connectionStrings'" appears. I wanted to ignore this.