Skip to content

Commit 0729f3f

Browse files
authored
Create Jenkinsfile
1 parent cb448c2 commit 0729f3f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Jenkinsfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)