mirror of
https://github.com/simon987/music-graph-api.git
synced 2025-04-10 05:46:43 +00:00
maven java 11 fix + jenkins setup
This commit is contained in:
parent
038f88e3d2
commit
9bc45958e2
@ -1,2 +1,7 @@
|
|||||||
# music-graph
|
# music-graph
|
||||||
|
|
||||||
|
[](https://www.codefactor.io/repository/github/simon987/music-graph-api)
|
||||||
|
[](https://ci.simon987.net/job/music_graph_api/)
|
||||||
|
|
||||||
|
|
||||||
wip
|
wip
|
||||||
|
30
jenkins/Jenkinsfile
vendored
Normal file
30
jenkins/Jenkinsfile
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
def remote = [:]
|
||||||
|
remote.name = 'remote'
|
||||||
|
remote.host = env.DEPLOY_HOST
|
||||||
|
remote.user = env.DEPLOY_USER
|
||||||
|
remote.identityFile = '/var/lib/jenkins/.ssh/id_rsa'
|
||||||
|
remote.knownHosts = '/var/lib/jenkins/.ssh/known_hosts'
|
||||||
|
remote.allowAnyHosts = true
|
||||||
|
remote.retryCount = 3
|
||||||
|
remote.retryWaitSec = 3
|
||||||
|
logLevel = 'FINER'
|
||||||
|
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
stages {
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
sh './jenkins/build.sh'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy') {
|
||||||
|
steps {
|
||||||
|
sshCommand remote: remote, command: 'rm -rf music_graph_api/target music_graph_api/deploy.sh'
|
||||||
|
sshPut remote: remote, from: 'target', into: 'music_graph_api'
|
||||||
|
sshPut remote: remote, from: 'jenkins/deploy.sh', into: 'music_graph_api/deploy.sh'
|
||||||
|
sshCommand remote: remote, command: 'chmod +x music_graph_api/deploy.sh && ./music_graph_api/deploy.sh'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
3
jenkins/build.sh
Executable file
3
jenkins/build.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
mvn package
|
4
jenkins/deploy.sh
Executable file
4
jenkins/deploy.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
ls
|
||||||
|
echo "todo"
|
9
pom.xml
9
pom.xml
@ -10,6 +10,15 @@
|
|||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>versions-maven-plugin</artifactId>
|
||||||
|
<version>2.5</version>
|
||||||
|
<configuration>
|
||||||
|
<generateBackupPoms>false</generateBackupPoms>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<version>3.8.0</version>
|
<version>3.8.0</version>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user