Test Neutral Pipeline #12
Some checks reported errors
Neutral/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
Neutral/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
cf0bee1466
commit
cab43d1a15
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@ -20,6 +20,18 @@ pipeline {
|
||||
}
|
||||
stage('[Neutral] - Test') {
|
||||
steps {
|
||||
script {
|
||||
def commit_name = env.TAG_NAME
|
||||
if(commit_name) {
|
||||
echo "[Neutral] - Deployement version reconnu"
|
||||
|
||||
} else {
|
||||
currentBuild.result = 'ABORTED'
|
||||
echo "[Neutral] - Deployement version non reconnu"
|
||||
return
|
||||
|
||||
}
|
||||
}
|
||||
echo "[Neutral-Deploy] - Test Stage"
|
||||
sh "rm -rf neutral"
|
||||
sh "git clone https://git.raphix.fr/infrastructure/neutral.git"
|
||||
@ -32,6 +44,18 @@ pipeline {
|
||||
stage('[Neutral] - Déploiement') {
|
||||
steps {
|
||||
script {
|
||||
|
||||
def commit_name = env.TAG_NAME
|
||||
if(commit_name) {
|
||||
echo "[Neutral] - Deployement version reconnu"
|
||||
|
||||
} else {
|
||||
currentBuild.result = 'ABORTED'
|
||||
echo "[Neutral] - Deployement version non reconnu"
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
def doesJavaRock = input(message: 'Confirmation de Déploiement', ok: 'Déployer')
|
||||
echo "[Neutral-Deploy] - Deploy Stage"
|
||||
sh "ssh raphix@raphix.fr sudo apt update -y"
|
||||
|
Loading…
x
Reference in New Issue
Block a user