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

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/
bash ./gradlew assemble 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 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 &"