Skip to content

Commit dee1d39

Browse files
Update Full-sentry-test
1 parent bd7f86d commit dee1d39

File tree

1 file changed

+23
-33
lines changed

1 file changed

+23
-33
lines changed

jenkins/Full-sentry-test

Lines changed: 23 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -23,55 +23,45 @@ pipeline {
2323
stage('Checkout') {
2424
steps {
2525
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-
// }
3226
}
3327
}
3428
stage('Packages') {
3529
steps {
3630
script {
3731
withCredentials([string(credentialsId: 'f2c8ef55-e558-4ac6-bc7a-8aa5a69b8cfa', variable: 'ID')]) {
3832
sh "env SECRET_SENTRY_AUTH_TOKEN='${ID}'"
39-
// sh "cd src && make packages"
33+
sh "cd src && make packages"
4034
}
41-
sh 'echo\$SECRET_SENTRY_AUTH_TOKEN '
4235
}
4336
}
4437
}
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+
}
6356
}
6457
post {
6558
success {
6659
archiveArtifacts artifacts: 'artifacts/**', fingerprint: false
6760
archiveArtifacts artifacts: 'src/logs/**', fingerprint: false
6861
}
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+
}
7666
}
7767
}

0 commit comments

Comments
 (0)