Compare commits
No commits in common. "29990ca26e0d00e3609b19220faff57226912639" and "27c72636c0d7f1b4b7bb3d1aa59b5f5e88e1326e" have entirely different histories.
29990ca26e
...
27c72636c0
@ -3,13 +3,9 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
container-test-job:
|
container-test-job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: exoplatform/jdk:openjdk-21-ubuntu-2204
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up JDK 21 for x64
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
java-version: '21'
|
|
||||||
distribution: 'temurin'
|
|
||||||
architecture: x64
|
|
||||||
- name: Test with Gradle
|
- name: Test with Gradle
|
||||||
run: bash ./gradlew test
|
run: bash ./gradlew test
|
35
Jenkinsfile
vendored
35
Jenkinsfile
vendored
@ -1,35 +0,0 @@
|
|||||||
pipeline {
|
|
||||||
agent any
|
|
||||||
stages {
|
|
||||||
stage('Test') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
sh "sh ./gradlew clean test"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Build') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
sh "sh ./gradlew clean build"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Deploy') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
sh "sh deploy/nio17.sh"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
script {
|
|
||||||
if (currentBuild.currentResult == 'FAILURE') {
|
|
||||||
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "a.romanov@ulstu.ru", sendToIndividuals: true])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
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"
|
|
Loading…
x
Reference in New Issue
Block a user