@@ -23,55 +23,45 @@ pipeline {
23
23
stage('Checkout') {
24
24
steps {
25
25
sh 'cd src && make checkout'
26
- // script {
27
- // withCredentials([string(credentialsId: 'ce73d801-9cb5-41ea-814e-a416fa193afe', variable: 'ID')]) {
28
- // sh 'cd conf && touch secrets.yaml'
29
- // writeFile(file: "conf/secrets.yaml", text: ID)
30
- // }
31
- // }
32
26
}
33
27
}
34
28
stage('Packages') {
35
29
steps {
36
30
script {
37
31
withCredentials([string(credentialsId: 'f2c8ef55-e558-4ac6-bc7a-8aa5a69b8cfa', variable: 'ID')]) {
38
32
sh "env SECRET_SENTRY_AUTH_TOKEN='${ID}'"
39
- // sh "cd src && make packages"
33
+ sh "cd src && make packages"
40
34
}
41
- sh 'echo\$SECRET_SENTRY_AUTH_TOKEN '
42
35
}
43
36
}
44
37
}
45
- // stage('Update') {
46
- // steps {
47
- // sh 'cd src && make update'
48
- // }
49
- // }
50
- // stage('ISO') {
51
- // steps {
52
- // sh 'cd src && make iso'
53
- // }
54
- // }
55
- // stage('Artifact') {
56
- // steps {
57
- // sh 'rm -rf artifacts || true'
58
- // sh 'mkdir -p artifacts/packages'
59
- // sh 'mv src/tmp/release/* artifacts/'
60
- // sh 'cp src/tmp/pkgdir/* artifacts/packages/'
61
- // }
62
- // }
38
+ stage('Update') {
39
+ steps {
40
+ sh 'cd src && make update'
41
+ }
42
+ }
43
+ stage('ISO') {
44
+ steps {
45
+ sh 'cd src && make iso'
46
+ }
47
+ }
48
+ stage('Artifact') {
49
+ steps {
50
+ sh 'rm -rf artifacts || true'
51
+ sh 'mkdir -p artifacts/packages'
52
+ sh 'mv src/tmp/release/* artifacts/'
53
+ sh 'cp src/tmp/pkgdir/* artifacts/packages/'
54
+ }
55
+ }
63
56
}
64
57
post {
65
58
success {
66
59
archiveArtifacts artifacts: 'artifacts/**', fingerprint: false
67
60
archiveArtifacts artifacts: 'src/logs/**', fingerprint: false
68
61
}
69
- // failure {
70
- // archiveArtifacts artifacts: 'src/logs/**', fingerprint: false
71
- // mail bcc: '', body: "<b>Jenkins: TrueNAS SCALE Nightly Build Failure</b><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> URL build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "ERROR CI: Project name -> ${env.JOB_NAME}", to: "
[email protected] ,
[email protected] ";
72
- // }
73
- // always {
74
- // sh 'rm -f conf/secrets.yaml'
75
- // }
62
+ failure {
63
+ archiveArtifacts artifacts: 'src/logs/**', fingerprint: false
64
+ // mail bcc: '', body: "<b>Jenkins: TrueNAS SCALE Nightly Build Failure</b><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> URL build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "ERROR CI: Project name -> ${env.JOB_NAME}", to: "
[email protected] ,
[email protected] ";
65
+ }
76
66
}
77
67
}
0 commit comments