diff --git a/Jenkinsfile b/Jenkinsfile index a8e5489..36c4c31 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,14 @@ pipeline { } stages { + stage('Pre') { + steps { + sshagent([env.SSH_CREDENTIALS_ID]) { + sh 'ssh alex@117.72.202.202 "bash /home/alex/alex-api/bin/pre-steps.sh"' + } + } + } + stage('Build') { steps { sh 'mvn clean package -DskipTests' diff --git a/app/alex-api-0.0.1-SNAPSHOT.jar b/app/alex-api-0.0.1-SNAPSHOT.jar index 36e9093..f10f769 100755 Binary files a/app/alex-api-0.0.1-SNAPSHOT.jar and b/app/alex-api-0.0.1-SNAPSHOT.jar differ diff --git a/logs/alex-api.log b/logs/alex-api.log index ee139d7..7ff753d 100644 --- a/logs/alex-api.log +++ b/logs/alex-api.log @@ -7,19 +7,19 @@ =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.6.13) -2025-07-15 13:58:33.312 INFO 2743270 --- [ main] com.ctgu.alexapi.AlexApiApplication : Starting AlexApiApplication using Java 17.0.15 on server with PID 2743270 (/home/alex/alex-api/app/alex-api-0.0.1-SNAPSHOT.jar started by alex in /home/alex) -2025-07-15 13:58:33.315 INFO 2743270 --- [ main] com.ctgu.alexapi.AlexApiApplication : The following 1 profile is active: "dev" -2025-07-15 13:58:34.759 INFO 2743270 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode -2025-07-15 13:58:34.762 INFO 2743270 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. -2025-07-15 13:58:34.823 INFO 2743270 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 16 ms. Found 0 Redis repository interfaces. -2025-07-15 13:58:36.299 INFO 2743270 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8888 (http) -2025-07-15 13:58:36.329 INFO 2743270 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] -2025-07-15 13:58:36.329 INFO 2743270 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.68] -2025-07-15 13:58:36.520 INFO 2743270 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext -2025-07-15 13:58:36.520 INFO 2743270 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3079 ms +2025-07-15 14:25:40.790 INFO 2747605 --- [ main] com.ctgu.alexapi.AlexApiApplication : Starting AlexApiApplication using Java 17.0.15 on server with PID 2747605 (/home/alex/alex-api/app/alex-api-0.0.1-SNAPSHOT.jar started by alex in /home/alex) +2025-07-15 14:25:40.794 INFO 2747605 --- [ main] com.ctgu.alexapi.AlexApiApplication : The following 1 profile is active: "dev" +2025-07-15 14:25:41.976 INFO 2747605 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode +2025-07-15 14:25:41.979 INFO 2747605 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. +2025-07-15 14:25:42.017 INFO 2747605 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 12 ms. Found 0 Redis repository interfaces. +2025-07-15 14:25:43.070 INFO 2747605 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8888 (http) +2025-07-15 14:25:43.118 INFO 2747605 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] +2025-07-15 14:25:43.119 INFO 2747605 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.68] +2025-07-15 14:25:43.262 INFO 2747605 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext +2025-07-15 14:25:43.263 INFO 2747605 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2344 ms _ _ |_ _ _|_. ___ _ | _ | | |\/|_)(_| | |_\ |_)||_|_\ / | 3.5.1 -2025-07-15 13:58:38.617 INFO 2743270 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8888 (http) with context path '' -2025-07-15 13:58:38.630 INFO 2743270 --- [ main] com.ctgu.alexapi.AlexApiApplication : Started AlexApiApplication in 6.208 seconds (JVM running for 7.075) +2025-07-15 14:25:45.257 INFO 2747605 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8888 (http) with context path '' +2025-07-15 14:25:45.268 INFO 2747605 --- [ main] com.ctgu.alexapi.AlexApiApplication : Started AlexApiApplication in 5.509 seconds (JVM running for 6.119)