https://tree.taiga.io/project/jr-utily-grog-v3/us/64 Mise en place des taches Jenkins
https://tree.taiga.io/project/jr-utily-grog-v3/task/100 Amélioration du processus Ajout d'un fichier dans le git pour action auto de Jenkins
Showing
1 changed file
with
16 additions
and
0 deletions
Jenkinsfile
0 → 100644
1 | +#!groovy | ||
2 | +node { | ||
3 | + stage 'Config' | ||
4 | + def sonarqubeScannerHome = tool name: 'sonar', type: 'hudson.plugins.sonar.SonarRunnerInstallation' | ||
5 | + | ||
6 | + stage 'Checkout' | ||
7 | + checkout([$class: 'GitSCM', branches: [[name: '**']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'grogdevSSH', url: 'git@grogv3.legrog.org:grogv3/web-application.git']]]) | ||
8 | + | ||
9 | + stage 'clean install' | ||
10 | + withMaven(mavenLocalRepo: '', mavenOpts: '', mavenSettingsFilePath: '') { | ||
11 | + sh "mvn clean install" | ||
12 | + } | ||
13 | + | ||
14 | + stage 'Scan' | ||
15 | + sh "${sonarqubeScannerHome}/bin/sonar-scanner -Dsonar.host.url=http://grogv3.legrog.org:9000" | ||
16 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment