13-register #14

Merged
romanov73 merged 19 commits from 13-register into master 2025-02-18 14:17:09 +04:00
2 changed files with 6 additions and 10 deletions
Showing only changes of commit 48e65bd53d - Show all commits

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 &"