Skip to content

Commit

Permalink
Merge branch 'develop' into add_migrations_38
Browse files Browse the repository at this point in the history
  • Loading branch information
N1ghtStorm committed Apr 21, 2023
2 parents 6528a58 + 5f2beeb commit b943d5a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

String agentLabel = 'docker-build-agent'
String registry = 'docker.soramitsu.co.jp'
String cargoAuditImage = registry + '/build-tools/cargo_audit'
String dockerBuildToolsUserId = 'bot-build-tools-ro'
String dockerRegistryRWUserId = 'bot-sora2-rw'
String baseImageName = 'docker.soramitsu.co.jp/sora2/parachain-env:latest'
Expand Down Expand Up @@ -30,6 +31,21 @@ pipeline {
}
}
}
stage('Audit') {
steps {
script {
docker.withRegistry( 'https://' + registry, dockerBuildToolsUserId) {
docker.image(cargoAuditImage + ':latest').inside(){
sh '''
rm -rf ~/.cargo/registry/*
cargo audit > cargoAuditReport.txt || exit 0
'''
archiveArtifacts artifacts: "cargoAuditReport.txt"
}
}
}
}
}
stage('Build & Tests') {
steps{
script {
Expand All @@ -38,7 +54,11 @@ pipeline {
sh '''
cargo build --release
cp target/release/parachain-collator housekeeping/parachain-collator
mv ./target/release/wbuild/parachain-template-runtime/parachain_template_runtime.compact.compressed.wasm ./parachain_template_runtime.compact.compressed.wasm
'''
archiveArtifacts artifacts:
"parachain_template_runtime.compact.compressed.wasm"

}
}
}
Expand Down

0 comments on commit b943d5a

Please sign in to comment.