-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- link check functionality - test class
- Loading branch information
Vincent
committed
Jun 27, 2022
1 parent
46db382
commit ad6944e
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.cloudogu.ces.cesbuildlib | ||
|
||
class Markdown implements Serializable{ | ||
Sh sh | ||
private script | ||
Docker docker | ||
|
||
Markdown(script) { | ||
this.sh = new Sh(script) | ||
} | ||
|
||
def check(){ | ||
docker.image("ghcr.io/tcort/markdown-link-check:stable") | ||
.mountJenkinsUser() | ||
.inside('--entrypoint="" -v ${WORKSPACE}/docs:/tmp') { | ||
script.sh 'find /tmp -name \\*.md -print0 | xargs -0 -n1 markdown-link-check -v' | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.cloudogu.ces.cesbuildlib | ||
|
||
class MarkdownTest extends GroovyTestCase { | ||
|
||
} |