Jenkins 파이프라인 추가 및 WebLogic 라이브러리 경로 수정
This commit is contained in:
@@ -13,4 +13,88 @@ ant -s build-server.xml archive
|
||||
|
||||
cd /c/eactive/workspaces/kjb-bap/BAPWeb
|
||||
ant -s build.xml war
|
||||
```
|
||||
|
||||
### Jenkisn pipeline
|
||||
```groovy
|
||||
pipeline {
|
||||
agent { label 'apipod01' } // 노트북망
|
||||
// agent { label 'apigwd01' } // 은행개발망
|
||||
|
||||
parameters {
|
||||
string(name: 'BRANCH_NAME', defaultValue: 'master', description: 'Git branch to build (applies to both repos)')
|
||||
}
|
||||
|
||||
environment {
|
||||
// Git 저장소 정보
|
||||
GIT_SERVER = '192.168.240.178:18081'
|
||||
GIT_CREDENTIALS_ID = 'git-ssh-credentials'
|
||||
|
||||
// 프로젝트 디렉토리 구조
|
||||
PROJECT_HOME = '/Data/jenkins/eapim'
|
||||
|
||||
JAVA_HOME = '/App/jenkins/jdks/jdk1.8.0_441'
|
||||
ANT_HOME = '/c/eactive/apps/apache-ant-1.10.15'
|
||||
PATH = "${env.PATH}:${env.JAVA_HOME}/bin:${env.ANT_HOME}/bin"
|
||||
}
|
||||
|
||||
|
||||
stages {
|
||||
stage('Checkout BAPRMSClient') {
|
||||
steps {
|
||||
dir("${env.PROJECT_HOME}/BAPRMSClient") {
|
||||
echo "▶ Checking out BAPRMSClient (${params.BRANCH_NAME})..."
|
||||
git branch: "${params.BRANCH_NAME}",
|
||||
credentialsId: "${env.GIT_CREDENTIALS_ID}",
|
||||
url: "ssh://git@${env.GIT_SERVER}/eapim/baprmsclient.git"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Checkout BAPWeb') {
|
||||
steps {
|
||||
dir("${env.PROJECT_HOME}/BAPWeb") {
|
||||
echo "▶ Checking out BAPWeb (${params.BRANCH_NAME})..."
|
||||
git branch: "${params.BRANCH_NAME}",
|
||||
credentialsId: "${env.GIT_CREDENTIALS_ID}",
|
||||
url: "ssh://git@${env.GIT_SERVER}/eapim/bapweb.git"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build BAPRMSClient') {
|
||||
steps {
|
||||
dir("${env.PROJECT_HOME}/BAPRMSClient") {
|
||||
echo '▶ Building BAPRMSClient archive...'
|
||||
sh 'ant -s build-server.xml archive'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build BAPWeb') {
|
||||
steps {
|
||||
dir("${env.PROJECT_HOME}/BAPWeb") {
|
||||
echo '▶ Building BAPWeb WAR...'
|
||||
sh 'ant -s build.xml war'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Archive WAR Artifact') {
|
||||
steps {
|
||||
echo '▶ Archiving WAR file...'
|
||||
archiveArtifacts artifacts: "${env.PROJECT_HOME}/BAPWeb/dist/BAPWeb.war", fingerprint: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
success {
|
||||
echo '✅ Build completed successfully. WAR archived.'
|
||||
}
|
||||
failure {
|
||||
echo '❌ Build failed. Check logs for details.'
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -17,7 +17,11 @@
|
||||
<fileset dir="../COMWeb/module-build/" includes="*.jar"/>
|
||||
</path-->
|
||||
<path id="WebLogic System Libraries.libraryclasspath">
|
||||
<pathelement location="${WEBLOGIC_HOME.location}/wlserver/server/lib/api.jar"/>
|
||||
<fileset dir="${WEBLOGIC_HOME.location}/wlserver/server/lib/" includes="*.jar"/>
|
||||
<fileset dir="${WEBLOGIC_HOME.location}/oracle_common/modules/" includes="*.jar"/>
|
||||
<fileset dir="${WEBLOGIC_HOME.location}/wlserver/modules/" includes="*.jar"/>
|
||||
|
||||
<!-- <pathelement location="${WEBLOGIC_HOME.location}/wlserver/server/lib/api.jar"/>
|
||||
<pathelement location="${WEBLOGIC_HOME.location}/wlserver/modules/org.glassfish.web.javax.servlet.jsp.jstl.jar"/>
|
||||
<pathelement location="${WEBLOGIC_HOME.location}/oracle_common/modules/javax.annotation_1.2.0.0_1-1.jar"/>
|
||||
<pathelement location="${WEBLOGIC_HOME.location}/oracle_common/modules/javax.ejb_3.3.0.jar"/>
|
||||
@@ -43,7 +47,7 @@
|
||||
<pathelement location="${WEBLOGIC_HOME.location}/oracle_common/modules/javax.xml.ws_1.0.0.0_2-2.jar"/>
|
||||
<pathelement location="${WEBLOGIC_HOME.location}/wlserver/modules/javax.websocket_1.0.0.0.jar"/>
|
||||
<pathelement location="${WEBLOGIC_HOME.location}/wlserver/modules/javax.json_1.0.0.0_1-0.jar"/>
|
||||
<pathelement location="${WEBLOGIC_HOME.location}/wlserver/server/lib/wls-api.jar"/>
|
||||
<pathelement location="${WEBLOGIC_HOME.location}/wlserver/server/lib/wls-api.jar"/> -->
|
||||
</path>
|
||||
<path id="BAPWeb.classpath">
|
||||
<pathelement location="build/classes"/>
|
||||
|
||||
Reference in New Issue
Block a user