#13 -- Fix ci
All checks were successful
CI fuzzy controller / container-test-job (push) Successful in 10m2s

This commit is contained in:
Anton Romanov 2025-02-18 11:30:06 +04:00
parent 73b5dd47df
commit 48e65bd53d
2 changed files with 6 additions and 10 deletions

12
Jenkinsfile vendored
View File

@ -1,13 +1,9 @@
pipeline {
agent any
tools {
jdk 'jdk-21'
}
stages {
stage('Test') {
steps {
script {
sh "sh ./gradlew clean test"
}
}
}
stage('Build') {
steps {
script {
@ -18,7 +14,7 @@ pipeline {
stage('Deploy') {
steps {
script {
sh "sh deploy/nio17.sh"
sh "bash deploy/nio17.sh &"
}
}
}

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/
bash ./gradlew assemble
scp -o StrictHostKeyChecking=no build/libs/fuzzy-controller-0.0.1-SNAPSHOT.jar root@192.168.1.129:/root/fuzzy-controller.jar
ssh root@192.168.1.129 "bash /root/run-fc.sh"
ssh root@192.168.1.129 "killall java >> /dev/null && /opt/jdk-21/bin/java -jar /root/fuzzy-controller.jar >> /root/fc.log &"