forked from sxei/pinyinjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
68 lines (62 loc) · 1.76 KB
/
Jenkinsfile
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
pipeline {
environment {
COMMIT_ID= sh (
script: 'git log -1 --pretty=%H',
returnStdout: true
).trim()
}
stages {
stage('Commit Message Check') {
steps {
echo "Commit MessageCheck Stage"
}
}
// stage('Rebase') {
// steps {
// rebase()
// }
// }
// stage('Install Dependencies') {
// steps {
// sh "rm -rf yarn.lock"
// sh "rm -rf package-lock.json"
// sh "rm -rf packages/neo-ui-common/package-lock.json"
// sh "unset PYTHONPATH && yarn install --ignore-optional"
// }
// }
// stage('Static Analysis'){
// steps {
// static_analysis()
// }
// post {
// failure {
// archiveArtifacts artifacts: 'newCodeIssues.json'
// }
// }
// }
// stage('Build') {
// steps {
// build_code()
// }
// }
// stage('Upload to internal doc site') {
// when { anyOf {expression { return "${codeClassification}".contains("docs-web") };expression { return "${codeClassification}".contains("docs-h5") }} }
// steps {
// upload_artifacts_zip_cdn("${GERRIT_BRANCH}","${GERRIT_PROJECT}")
// }
// }
}
post {
always {
echo 'One way or another, I have finished'
}
unstable {
echo 'I am unstable'
}
failure {
}
changed {
echo 'Things were different.'
}
}
}