Merge branch 'jenkins_with_weblogic' of ssh://192.168.240.178:18081/eapim/eapim-online into jenkins_with_weblogic
This commit is contained in:
@@ -25,9 +25,38 @@
|
||||
|
||||
<!-- url: The JDBC connection url for connecting to your MySQL database.
|
||||
-->
|
||||
<!--
|
||||
<Resource name="NDAPIGW_APP_NXA" auth="Container" type="javax.sql.DataSource"
|
||||
maxTotal="10" initialSize="10" maxIdle="10" maxActive="10" maxWaitMillis="10000"
|
||||
poolPreparedStatements="true" validationQuery="SELECT 1" validationInterval="600000"
|
||||
username="apigw" password="apigw" driverClassName="com.mysql.jdbc.Driver"
|
||||
url="jdbc:mysql://192.168.8.30:13306/apigw"/>
|
||||
-->
|
||||
<!-- APIGW myPC MySql 5.7 -->
|
||||
|
||||
<Resource name="jndi/dsAPIGW" auth="Container" type="javax.sql.DataSource"
|
||||
maxTotal="10" initialSize="10" maxIdle="10" maxActive="10" maxWaitMillis="10000"
|
||||
poolPreparedStatements="true" validationQuery="SELECT 1" validationInterval="600000"
|
||||
username="apigw" password="apigw" driverClassName="com.mysql.cj.jdbc.Driver"
|
||||
url="jdbc:mysql://localhost:3306/apigw"/>
|
||||
|
||||
|
||||
|
||||
<!-- APIGW -->
|
||||
<!--
|
||||
<Resource name="jndi/dsAPIGW" auth="Container" type="javax.sql.DataSource"
|
||||
maxTotal="10" maxIdle="10" maxWaitMillis="10000"
|
||||
username="apigw" password="apigw1234" driverClassName="oracle.jdbc.OracleDriver"
|
||||
url="jdbc:oracle:thin:@//localhost:1521/XE"/>
|
||||
-->
|
||||
|
||||
<!-- APIGW 유차장 ORACLE-->
|
||||
|
||||
<Resource name="jdbc/dsOBP_AGW" auth="Container" type="javax.sql.DataSource"
|
||||
maxTotal="10" maxIdle="10" maxWaitMillis="10000"
|
||||
username="AGWAPP" password="AGWAPP123!" driverClassName="oracle.jdbc.OracleDriver"
|
||||
url="jdbc:oracle:thin:@192.168.240.177:1599:DAPM"/>
|
||||
url="jdbc:oracle:thin:@//192.168.240.177:1599/DAPM"/>
|
||||
|
||||
|
||||
|
||||
</Context>
|
||||
@@ -18,7 +18,9 @@ shutdown.wait.intervalms=1000
|
||||
# message function
|
||||
# use default options
|
||||
# async queue
|
||||
use.internal.queue=true
|
||||
// below false to test Weblogic JMS, jwhong
|
||||
#use.internal.queue=true
|
||||
use.internal.queue=false
|
||||
# sync-async mapping
|
||||
use.internal.topic=true
|
||||
# restore mapping
|
||||
|
||||
@@ -34,9 +34,7 @@
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>/WEB-INF/applicationContext.xml</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Weblogic 14.1.2 서블릿 설정 -->
|
||||
<!--
|
||||
<servlet>
|
||||
<servlet-name>default</servlet-name>
|
||||
<servlet-class>weblogic.servlet.FileServlet</servlet-class>
|
||||
@@ -45,7 +43,7 @@
|
||||
<servlet-name>default</servlet-name>
|
||||
<url-pattern>/static/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
-->
|
||||
|
||||
<!-- oAuth 2.0 인증서버 설정 -->
|
||||
<servlet>
|
||||
<servlet-name>authserver</servlet-name>
|
||||
@@ -71,6 +69,7 @@
|
||||
</filter-mapping>
|
||||
|
||||
<!-- Dynamic REST API 어댑터 설정 -->
|
||||
<!--
|
||||
<servlet>
|
||||
<description/>
|
||||
<servlet-name>RestApiDynamicInAdapter</servlet-name>
|
||||
@@ -82,7 +81,7 @@
|
||||
<url-pattern>/API/*</url-pattern>
|
||||
<url-pattern>/api/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
-->
|
||||
<!--
|
||||
<listener>
|
||||
<listener-class>com.eactive.eai.adapter.http.async.AppContextListener</listener-class>
|
||||
|
||||
@@ -0,0 +1,168 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app id="servlet-3_0" version="3.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
|
||||
|
||||
<description/>
|
||||
<display-name>ONLWeb</display-name>
|
||||
<filter>
|
||||
<filter-name>FrontFilter</filter-name>
|
||||
<filter-class>com.eactive.eai.admin.FrontFilter</filter-class>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>FrontFilter</filter-name>
|
||||
<url-pattern>/HTT/*</url-pattern>
|
||||
<url-pattern>/WebAgent/*</url-pattern>
|
||||
<url-pattern>/adapter/*</url-pattern>
|
||||
<url-pattern>/agent/*</url-pattern>
|
||||
<url-pattern>/common/*</url-pattern>
|
||||
<url-pattern>/management/*</url-pattern>
|
||||
<url-pattern>/mgr/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<context-param>
|
||||
<param-name>logbackDisableServletContainerInitializer</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
|
||||
<listener>
|
||||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||||
</listener>
|
||||
<context-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>/WEB-INF/applicationContext.xml</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Weblogic 14.1.2 서블릿 설정 -->
|
||||
<servlet>
|
||||
<servlet-name>default</servlet-name>
|
||||
<servlet-class>weblogic.servlet.FileServlet</servlet-class>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>default</servlet-name>
|
||||
<url-pattern>/static/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- oAuth 2.0 인증서버 설정 -->
|
||||
<servlet>
|
||||
<servlet-name>authserver</servlet-name>
|
||||
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>authserver</servlet-name>
|
||||
<url-pattern>/</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<filter>
|
||||
<filter-name>springSecurityFilterChain</filter-name>
|
||||
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
||||
<init-param>
|
||||
<param-name>contextAttribute</param-name>
|
||||
<param-value>org.springframework.web.servlet.FrameworkServlet.CONTEXT.authserver</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>springSecurityFilterChain</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<!-- Dynamic REST API 어댑터 설정 -->
|
||||
<!-- <servlet>-->
|
||||
<!-- <description/>-->
|
||||
<!-- <servlet-name>RestApiDynamicInAdapter</servlet-name>-->
|
||||
<!-- <servlet-class>com.eactive.eai.adapter.http.dynamic.RestApiAdapterMain</servlet-class>-->
|
||||
<!-- <load-on-startup>2</load-on-startup>-->
|
||||
<!-- </servlet>-->
|
||||
<!-- <servlet-mapping>-->
|
||||
<!-- <servlet-name>RestApiDynamicInAdapter</servlet-name>-->
|
||||
<!-- <url-pattern>/API/*</url-pattern>-->
|
||||
<!-- <url-pattern>/api/*</url-pattern>-->
|
||||
<!-- </servlet-mapping>-->
|
||||
|
||||
<!--
|
||||
<listener>
|
||||
<listener-class>com.eactive.eai.adapter.http.async.AppContextListener</listener-class>
|
||||
</listener>
|
||||
<listener>
|
||||
<listener-class>com.eactive.eai.adapter.http.async.AppAsyncListener</listener-class>
|
||||
</listener>
|
||||
-->
|
||||
|
||||
<!--
|
||||
<servlet>
|
||||
<description/>
|
||||
<servlet-name>LUGroupServlet</servlet-name>
|
||||
<servlet-class>com.eactive.eai.adapter.wca.servlet.LUGroupServlet</servlet-class>
|
||||
</servlet>
|
||||
<servlet>
|
||||
<description/>
|
||||
<servlet-name>LUInfoServlet</servlet-name>
|
||||
<servlet-class>com.eactive.eai.adapter.wca.servlet.LUInfoServlet</servlet-class>
|
||||
</servlet>
|
||||
<servlet>
|
||||
<description/>
|
||||
<servlet-name>LURegisterServlet</servlet-name>
|
||||
<servlet-class>com.eactive.eai.adapter.wca.servlet.LURegisterServlet</servlet-class>
|
||||
</servlet>
|
||||
-->
|
||||
|
||||
<!--
|
||||
<servlet-mapping>
|
||||
<servlet-name>LUGroupServlet</servlet-name>
|
||||
<url-pattern>/LUGroupServlet.do</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>LUInfoServlet</servlet-name>
|
||||
<url-pattern>/LUInfoServlet.do</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>LURegisterServlet</servlet-name>
|
||||
<url-pattern>/LURegisterServlet.do</url-pattern>
|
||||
</servlet-mapping>
|
||||
-->
|
||||
<servlet>
|
||||
<description/>
|
||||
<servlet-name>WebAgent</servlet-name>
|
||||
<servlet-class>com.eactive.eai.agent.web.WebAgent</servlet-class>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>WebAgent</servlet-name>
|
||||
<url-pattern>/WebAgent</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet>
|
||||
<description/>
|
||||
<servlet-name>Dynamic</servlet-name>
|
||||
<servlet-class>com.eactive.eai.adapter.http.dynamic.HttpAdapterMain</servlet-class>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Dynamic</servlet-name>
|
||||
<url-pattern>/HTT/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<!--
|
||||
<servlet>
|
||||
<description/>
|
||||
<servlet-name>AsyncServlet</servlet-name>
|
||||
<servlet-class>com.eactive.eai.adapter.http.async.AsyncServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>com.ibm.ws.webcontainer.async-supported</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>AsyncServlet</servlet-name>
|
||||
<url-pattern>/AsyncServlet</url-pattern>
|
||||
</servlet-mapping>
|
||||
-->
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
<error-page>
|
||||
<error-code>500</error-code>
|
||||
<location>/error.jsp</location>
|
||||
</error-page>
|
||||
|
||||
</web-app>
|
||||
@@ -1,14 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.bea.com/ns/weblogic/90" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
|
||||
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app">
|
||||
|
||||
<context-root>/</context-root>
|
||||
<session-descriptor>
|
||||
<timeout-secs>1800</timeout-secs>
|
||||
<cookie-name>JSESSIONID_ONL</cookie-name>
|
||||
<cookie-name>JSESSIONID_EMS</cookie-name>
|
||||
<persistent-store-type>replicated_if_clustered</persistent-store-type>
|
||||
</session-descriptor>
|
||||
|
||||
<container-descriptor>
|
||||
<prefer-application-packages>
|
||||
<packate-name>org.apach.ignite.*</packate-name>
|
||||
<package-name>org.apach.ignite.*</package-name>
|
||||
<package-name>org.slf4j.*</package-name>
|
||||
<package-name>ch.qos.logback.*</package-name>
|
||||
</prefer-application-packages>
|
||||
|
||||
@@ -46,6 +46,15 @@ compileJava {
|
||||
}
|
||||
|
||||
war {
|
||||
// 2025.10.13 - weblogic 대응 (weblogic-web.xml -> web.xml 강제 사용)
|
||||
def profile = project.findProperty("profile") ?: "tomcat"
|
||||
|
||||
if (profile == "weblogic") {
|
||||
webXml = file("WebContent/WEB-INF/weblogic-web.xml")
|
||||
}
|
||||
archiveFileName = "eapim-online.war"
|
||||
duplicatesStrategy = DuplicatesStrategy.WARN
|
||||
|
||||
exclude '**/persistence.xml'
|
||||
exclude '**/context.xml'
|
||||
}
|
||||
|
||||
Vendored
+90
@@ -0,0 +1,90 @@
|
||||
pipeline {
|
||||
// agent { label 'apigwd01' }
|
||||
// 노트북망에서는 apipod01 서버에서 진행한다.
|
||||
agent { label 'apipod01' }
|
||||
|
||||
environment {
|
||||
// Java 환경 설정
|
||||
JAVA_HOME = '/App/jenkins/jdks/jdk1.8.0_441'
|
||||
PATH = "${JAVA_HOME}/bin:${env.PATH}"
|
||||
|
||||
// Gradle 환경 설정
|
||||
GRADLE_HOME = '/App/jenkins/gradle-8.7'
|
||||
GRADLE_USER_HOME = '/App/jenkins/gradle-home'
|
||||
// GRADLE_OPTS = '--offline'
|
||||
|
||||
// Git 저장소 정보
|
||||
GIT_SERVER = '192.168.240.178:18081'
|
||||
GIT_CREDENTIALS_ID = 'git-ssh-credentials'
|
||||
|
||||
// 프로젝트 디렉토리 구조
|
||||
PROJECT_HOME = '/Data/jenkins/eapim'
|
||||
|
||||
BRANCH = 'jenkins_with_weblogic'
|
||||
}
|
||||
|
||||
|
||||
stages {
|
||||
stage('Git pull') {
|
||||
steps {
|
||||
echo "[online] Git pull from branch: ${BRANCH}"
|
||||
dir("${PROJECT_HOME}/eapim-online") {
|
||||
git url: "ssh://git@${GIT_SERVER}/eapim/eapim-online", branch: "${BRANCH}", credentialsId: "${GIT_CREDENTIALS_ID}"
|
||||
}
|
||||
|
||||
echo "[online-core] Git pull from branch: ${BRANCH}"
|
||||
dir("${PROJECT_HOME}/eapim-online/elink-online-core") {
|
||||
git url: "ssh://git@${GIT_SERVER}/eapim/elink-online-core", branch: "${BRANCH}", credentialsId: "${GIT_CREDENTIALS_ID}"
|
||||
}
|
||||
|
||||
echo "[online-core-jpa] Git pull from branch: ${BRANCH}"
|
||||
dir("${PROJECT_HOME}/eapim-online/elink-online-core-jpa") {
|
||||
git url: "ssh://git@${GIT_SERVER}/eapim/elink-online-core-jpa", branch: "${BRANCH}", credentialsId: "${GIT_CREDENTIALS_ID}"
|
||||
}
|
||||
|
||||
|
||||
echo "[online-transformer] Git pull from branch: ${BRANCH}"
|
||||
dir("${PROJECT_HOME}/eapim-online/elink-online-transformer") {
|
||||
git url: "ssh://git@${GIT_SERVER}/eapim/elink-online-transformer", branch: "${BRANCH}", credentialsId: "${GIT_CREDENTIALS_ID}"
|
||||
}
|
||||
|
||||
echo "[online-common] Git pull from branch: ${BRANCH}"
|
||||
dir("${PROJECT_HOME}/eapim-online/elink-online-common") {
|
||||
git url: "ssh://git@${GIT_SERVER}/eapim/elink-online-common", branch: "${BRANCH}", credentialsId: "${GIT_CREDENTIALS_ID}"
|
||||
}
|
||||
|
||||
echo "[online-emsclient] Git pull from branch: ${BRANCH}"
|
||||
dir("${PROJECT_HOME}/eapim-online/elink-online-emsclient") {
|
||||
git url: "ssh://git@${GIT_SERVER}/eapim/elink-online-emsclient", branch: "${BRANCH}", credentialsId: "${GIT_CREDENTIALS_ID}"
|
||||
}
|
||||
|
||||
echo "[kjb-safedb] Git pull from branch: ${BRANCH}"
|
||||
dir("${PROJECT_HOME}/kjb-safedb") {
|
||||
git url: "ssh://git@${GIT_SERVER}/eapim/kjb-safedb", branch: "${BRANCH}", credentialsId: "${GIT_CREDENTIALS_ID}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stage('Build') {
|
||||
steps {
|
||||
tool name: 'Oracle-JDK-1.8', type: 'hudson.model.JDK'
|
||||
|
||||
echo "[admin] Build project"
|
||||
dir("${PROJECT_HOME}/eapim-online") {
|
||||
sh '${GRADLE_HOME}/bin/gradle clean build -x test -Pprofile=weblogic'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stage('Archive WAR') {
|
||||
steps {
|
||||
echo "[admin] Archive WAR file"
|
||||
dir("${PROJECT_HOME}/eapim-online/build/libs") {
|
||||
archiveArtifacts artifacts: '*.war', fingerprint: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user