mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-10 14:26:45 +00:00
Remove jenkins folder
This commit is contained in:
parent
922162660f
commit
a0193621a8
33
jenkins/Jenkinsfile
vendored
33
jenkins/Jenkinsfile
vendored
@ -1,33 +0,0 @@
|
|||||||
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'
|
|
||||||
remote.port = 2299
|
|
||||||
|
|
||||||
pipeline {
|
|
||||||
agent any
|
|
||||||
stages {
|
|
||||||
stage('Build') {
|
|
||||||
steps {
|
|
||||||
sh './jenkins/build.sh'
|
|
||||||
//stash includes: 'target/', name: 'target'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Deploy') {
|
|
||||||
steps {
|
|
||||||
//unstash 'target'
|
|
||||||
sshCommand remote: remote, command: 'rm -rf mar/target mar/deploy.sh'
|
|
||||||
sshPut remote: remote, from: 'target', into: 'mar'
|
|
||||||
sshPut remote: remote, from: 'jenkins/deploy.sh', into: 'mar/deploy.sh'
|
|
||||||
sshCommand remote: remote, command: 'chmod +x mar/deploy.sh && ./mar/deploy.sh'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
mvn package
|
|
@ -1,13 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
export MARROOT="mar"
|
|
||||||
|
|
||||||
screen -S mar -X quit
|
|
||||||
echo "Starting MAR"
|
|
||||||
|
|
||||||
cp ${MARROOT}/marConfig.properties ${MARROOT}/target/config.properties
|
|
||||||
cp -r ${MARROOT}/marCerts/ ${MARROOT}/target/certificates
|
|
||||||
|
|
||||||
screen -S mar -d -m bash -c "cd ${MARROOT}/target && java -jar server-*.jar"
|
|
||||||
sleep 1
|
|
||||||
screen -list
|
|
Loading…
x
Reference in New Issue
Block a user