forked from scs/substrate-api-client-test-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
executable file
·44 lines (44 loc) · 1 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
pipeline {
agent {
docker {
image 'scssubstratee/substratee_dev:1804-2.12-1.1.3-001'
args '''
-u root
--privileged
'''
}
}
options {
timeout(time: 1, unit: 'HOURS')
buildDiscarder(logRotator(numToKeepStr: '3'))
}
stages {
stage('Update') {
steps {
sh 'rustup target add wasm32-unknown-unknown'
}
}
stage('Build') {
steps {
sh 'cargo build --release'
}
}
stage('Archive artifact') {
steps {
archiveArtifacts artifacts: 'target/release/node-template', fingerprint: true
}
}
}
post {
unsuccessful {
emailext (
subject: "Jenkins Build '${env.JOB_NAME} [${env.BUILD_NUMBER}]' is ${currentBuild.currentResult}",
body: "${env.JOB_NAME} build ${env.BUILD_NUMBER} changed state and is now ${currentBuild.currentResult}\n\nMore info at: ${env.BUILD_URL}",
to: '${env.RECIPIENTS_SUBSTRATEE}'
)
}
always {
cleanWs()
}
}
}