Add jenkinsfile
This commit is contained in:
parent
b927385d25
commit
3c6785df76
46
Jenkinsfile
vendored
Normal file
46
Jenkinsfile
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
pipeline {
|
||||
agent any
|
||||
options {
|
||||
buildDiscarder(logRotator(numToKeepStr: "100"))
|
||||
skipDefaultCheckout(true)
|
||||
}
|
||||
triggers {
|
||||
pollSCM("*/10 * * * *")
|
||||
}
|
||||
environment {
|
||||
/*
|
||||
MSBUILD_SQ_SCANNER_HOME = tool name: 'sonarscanner', type: 'hudson.plugins.sonar.MsBuildSQRunnerInstallation'
|
||||
DOTNET_USE_POLLING_FILE_WATCHER = true
|
||||
DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE = false
|
||||
*/
|
||||
}
|
||||
stages {
|
||||
stage('Checkout'){
|
||||
steps{
|
||||
cleanWs()
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
stage('Clean'){
|
||||
steps{
|
||||
sh 'cargo clean'
|
||||
}
|
||||
}
|
||||
stage('Build'){
|
||||
steps {
|
||||
withSonarQubeEnv(installationName: 'grover.local:9000', envOnly: true) {
|
||||
sh 'cargo build --release'
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
stage('SonarQube Analysis'){
|
||||
steps {
|
||||
withSonarQubeEnv('grover.local:9000') {
|
||||
sh "dotnet ${MSBUILD_SQ_SCANNER_HOME}/SonarScanner.MSBuild.dll end"
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user