forked from realpython/python-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
36 lines (25 loc) · 1.13 KB
/
Jenkinsfile
File metadata and controls
36 lines (25 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
node {
stage('Build') {
echo "checkout from SCM"
git 'https://github.com/webweb04/python-scripts.git'
// Make the output directory.
echo "debug"
sh "mkdir -p output"
sh "ls -r"
sh "/usr/bin/python -version"
// Write an useful file, which is needed to be archived.
writeFile file: "output/usefulfile.txt", text: "This file is useful, need to archive it."
// Write an useless file, which is not needed to be archived.
writeFile file: "output/uselessfile.md", text: "This file is useless, no need to archive it."
echo "Archive build output"
// Archive the build output artifacts.
archiveArtifacts artifacts: 'output/*.txt', excludes: 'output/*.md'
}
stage('Test') {
// sh " echo https://github.com/lzjun567/python_scripts | /usr/bin/python 02_find_all_links.py >testlog.log"
// sh "diff testlog.log reflog.log"
}
stage('Deploy') {
//
}
}