Skip to content

Commit

Permalink
test (#168)
Browse files Browse the repository at this point in the history
jenkins file 적용
  • Loading branch information
kimorkim authored Jul 18, 2018
1 parent 7308128 commit 3ae4fdf
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 35 deletions.
64 changes: 30 additions & 34 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,39 @@ pipeline {
}
}
stages {
stage('SonarQube') {
stage('SonarQube analysis') {
when { changeRequest() }
failFast true
parallel {
stage('analysis') {
steps {
script {
def scannerHome = tool "sonarqube-scanner";
withSonarQubeEnv("sonar") {
sh "${scannerHome}/bin/sonar-scanner " +
"-Dsonar.projectKey=entry.entryHW " +
"-Dsonar.projectName=EntryHW " +
"-Dsonar.sourceEncoding=UTF-8 " +
"-Dsonar.analysis.mode=preview " +
"-Dsonar.github.repository=entrylabs/entry-hw " +
"-Dsonar.github.endpoint=https://api.github.com " +
"-Dsonar.github.oauth=${GH_TOKEN} " +
"-Dsonar.issuesReport.console.enable=true " +
"-Dsonar.github.disableInlineComments=true " +
"-Dsonar.github.pullRequest=${env.CHANGE_ID} " +
"-Dsonar.sources=app "
}
}
steps {
script {
def scannerHome = tool "sonarqube-scanner";
withSonarQubeEnv("sonar") {
sh "${scannerHome}/bin/sonar-scanner " +
"-Dsonar.projectKey=entry.entryHW " +
"-Dsonar.projectName=EntryHW " +
"-Dsonar.sourceEncoding=UTF-8 " +
"-Dsonar.analysis.mode=preview " +
"-Dsonar.github.repository=entrylabs/entry-hw " +
"-Dsonar.github.endpoint=https://api.github.com " +
"-Dsonar.github.oauth=${GH_TOKEN} " +
"-Dsonar.issuesReport.console.enable=true " +
"-Dsonar.github.disableInlineComments=true " +
"-Dsonar.github.pullRequest=${env.CHANGE_ID} " +
"-Dsonar.sources=app "
}
}
stage('scan') {
steps {
script {
def scannerHome = tool "sonarqube-scanner";
withSonarQubeEnv("sonar") {
sh "${scannerHome}/bin/sonar-scanner " +
"-Dsonar.projectKey=entry.entryHW " +
"-Dsonar.projectName=EntryHW " +
"-Dsonar.sourceEncoding=UTF-8 " +
"-Dsonar.sources=app "
}
}
}
}
stage('SonarQube scan') {
when { changeRequest() }
steps {
script {
def scannerHome = tool "sonarqube-scanner";
withSonarQubeEnv("sonar") {
sh "${scannerHome}/bin/sonar-scanner " +
"-Dsonar.projectKey=entry.entryHW " +
"-Dsonar.projectName=EntryHW " +
"-Dsonar.sourceEncoding=UTF-8 " +
"-Dsonar.sources=app "
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "entry_hw",
"version": "1.6.25",
"description": "엔트리 하드웨어 연결 프로그램",
"description": "엔트리 하드웨어 연결 프로그램1",
"author": "EntryLabs",
"main": "app/index.js",
"scripts": {
Expand Down

0 comments on commit 3ae4fdf

Please sign in to comment.