jenkins 빌드시 자동 줄내림 제거

gradlew 경로 변경
This commit is contained in:
2025-10-13 11:00:16 +09:00
parent 51c5709a79
commit 86e3263423
7 changed files with 21 additions and 8 deletions

View File

@@ -17,8 +17,9 @@ pipeline {
stage('Gradle Build') {
steps {
script {
sh 'chmod +x gradlew' //gradle 권한 설정
sh '/var/lib/jenkins/workspace/Trunk-Admintool-Dev-BackEnd/gradlew clean build -x test -Pprofile=dev' //빌드 test는 하지않는다
sh 'sed -i "s/\\r$//" gradlew'
sh 'chmod +x gradlew'
sh './gradlew clean build -x test -Pprofile=dev'
}
}
}

View File

@@ -17,7 +17,9 @@ pipeline {
stage('Gradle Build') {
steps {
script {
sh '/var/lib/jenkins/workspace/Product-Admintool-Live-BackEnd-Full/gradlew clean build -x test -Pprofile=live' //빌드 test는 하지않는다
sh 'sed -i "s/\\r$//" gradlew'
sh 'chmod +x gradlew'
sh './gradlew clean build -x test -Pprofile=live' //빌드 test는 하지않는다
}
}
}

View File

@@ -17,7 +17,9 @@ pipeline {
stage('Gradle Build') {
steps {
script {
sh '/var/lib/jenkins/workspace/Product-Admintool-Live-BackEnd/gradlew clean build -x test -Pprofile=live' //빌드 test는 하지않는다
sh 'sed -i "s/\\r$//" gradlew'
sh 'chmod +x gradlew'
sh './gradlew clean build -x test -Pprofile=live' //빌드 test는 하지않는다
}
}
}

View File

@@ -17,7 +17,9 @@ pipeline {
stage('Gradle Build') {
steps {
script {
sh '/var/lib/jenkins/workspace/Stable-Admintool-QA-BackEnd-Full/gradlew clean build -x test -Pprofile=qa' //빌드 test는 하지않는다
sh 'sed -i "s/\\r$//" gradlew'
sh 'chmod +x gradlew'
sh './gradlew clean build -x test -Pprofile=qa' //빌드 test는 하지않는다
}
}
}

View File

@@ -17,7 +17,9 @@ pipeline {
stage('Gradle Build') {
steps {
script {
sh '/var/lib/jenkins/workspace/Stable-Admintool-QA-BackEnd/gradlew clean build -x test -Pprofile=qa' //빌드 test는 하지않는다
sh 'sed -i "s/\\r$//" gradlew'
sh 'chmod +x gradlew'
sh './gradlew clean build -x test -Pprofile=qa' //빌드 test는 하지않는다
}
}
}

View File

@@ -17,7 +17,9 @@ pipeline {
stage('Gradle Build') {
steps {
script {
sh '/var/lib/jenkins/workspace/Product-Admintool-Stage-Backend-Full/gradlew clean build -x test -Pprofile=stage' //빌드 test는 하지않는다
sh 'sed -i "s/\\r$//" gradlew'
sh 'chmod +x gradlew'
sh './gradlew clean build -x test -Pprofile=stage' //빌드 test는 하지않는다
}
}
}

View File

@@ -17,7 +17,9 @@ pipeline {
stage('Gradle Build') {
steps {
script {
sh '/var/lib/jenkins/workspace/Product-Admintool-Stage-Backend/gradlew clean build -x test -Pprofile=stage' //빌드 test는 하지않는다
sh 'sed -i "s/\\r$//" gradlew'
sh 'chmod +x gradlew'
sh './gradlew clean build -x test -Pprofile=stage' //빌드 test는 하지않는다
}
}
}