diff --git a/Jenkinsfile b/Jenkinsfile index 2f334a2ef9a8e98de8ba6a58ec68bda662ef82e3..da69e0a093c99a8e1cc5c78a611559099e3c6f1d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,6 +45,7 @@ pipeline { [http] check-revoke = false EOF + cargo install cargo-audit ''' } } @@ -88,6 +89,15 @@ EOF ''' } } + stage('cargo audit') { + steps { + sh '''#!/bin/bash + + source $HOME/.cargo/env && cd PR-$giteePullRequestIid + cargo audit -D warnings + ''' + } + } } // post @@ -113,4 +123,4 @@ EOF } } } -} \ No newline at end of file +}