Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
maxulysse committed Sep 30, 2024
1 parent 384ddaa commit da4c0c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ The last file has no stable content (`execution_trace_2024-09-30_13-10-16.txt`)
For this example, we want to snapshot the files that have stable content, and the filenames that have stable names.

```groovy
def stable_name = getAllFilesFromDir(params.outdir, true, ['**/execution_trace*.txt'] )
def stable_content = getAllFilesFromDir(params.outdir, false, ['**/execution_trace*.txt', '**/stable_name.txt'] )
def stable_name = getAllFilesFromDir(params.outdir, true, ['**/execution_trace*.txt'], null )
def stable_content = getAllFilesFromDir(params.outdir, false, ['**/execution_trace*.txt', '**/stable_name.txt'], null )
assert snapshot(
// Only snapshot name as content is not stable
stable_name*.name,
Expand All @@ -72,4 +72,4 @@ assert snapshot(
).match()
```

First argument is the pipeline `outdir` directory path, second is a boolean to include folders, and the third is a list of glob patterns to ignore.
First argument is the pipeline `outdir` directory path, second is a boolean to include folders, and the third is a list of glob patterns to ignore, and the forth is a file containing a list of glob patterns to ignore.

0 comments on commit da4c0c4

Please sign in to comment.