forked from gnosis/safe-ios-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
35 lines (35 loc) · 1.01 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
pipeline {
agent any
environment {
ENCRYPTED_FILES_SECRET_KEY = credentials('ENCRYPTED_FILES_SECRET_KEY')
}
stages {
stage('Unit Tests') {
steps {
ansiColor('xterm') {
sh 'scripts/jenkins_build.sh test'
// sh 'scripts/codecov.sh -D . -c'
junit 'Build/reports/**/*.junit'
}
}
}
stage('Deploy') {
when {
expression { BRANCH_NAME ==~ /^(master|release\/.*)$/ }
}
steps {
ansiColor('xterm') {
sh 'scripts/jenkins_build.sh adhoc'
sh 'tar -czf archive.tgz ./Build/Archive.xcarchive'
archiveArtifacts 'archive.tgz'
}
}
}
}
post {
always {
archiveArtifacts 'Build/build_logs/,Build/reports/,Build/pre_build_action.log'
sh 'git clean -fd'
}
}
}