We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb448c2 commit 0729f3fCopy full SHA for 0729f3f
Jenkinsfile
@@ -0,0 +1,17 @@
1
+node {
2
+ stage "Create build output"
3
+
4
+ // Make the output directory.
5
+ sh "mkdir -p output"
6
7
+ // Write an useful file, which is needed to be archived.
8
+ writeFile file: "output/usefulfile.txt", text: "This file is useful, need to archive it."
9
10
+ // Write an useless file, which is not needed to be archived.
11
+ writeFile file: "output/uselessfile.md", text: "This file is useless, no need to archive it."
12
13
+ stage "Archive build output"
14
15
+ // Archive the build output artifacts.
16
+ archiveArtifacts artifacts: 'output/*.txt', excludes: 'output/*.md'
17
+}
0 commit comments