This commit is contained in:
parent
2d285f47fd
commit
80a7ce8f19
41
Jenkinsfile
vendored
41
Jenkinsfile
vendored
@ -2,37 +2,9 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('[Neutral] - Check Version') {
|
|
||||||
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
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('[Neutral] - Test') {
|
stage('[Neutral] - Test') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def commit_name = env.TAG_NAME
|
|
||||||
echo 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"
|
echo "[Neutral-Deploy] - Test Stage"
|
||||||
sh "rm -rf neutral"
|
sh "rm -rf neutral"
|
||||||
sh "git clone https://git.raphix.fr/infrastructure/neutral.git"
|
sh "git clone https://git.raphix.fr/infrastructure/neutral.git"
|
||||||
@ -41,25 +13,12 @@ pipeline {
|
|||||||
sh "ENV='TEST' node bin/www"
|
sh "ENV='TEST' node bin/www"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('[Neutral] - Déploiement') {
|
stage('[Neutral] - Déploiement') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
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')
|
def doesJavaRock = input(message: 'Confirmation de Déploiement', ok: 'Déployer')
|
||||||
echo "[Neutral-Deploy] - Deploy Stage"
|
echo "[Neutral-Deploy] - Deploy Stage"
|
||||||
sh "ssh raphix@raphix.fr sudo apt update -y"
|
sh "ssh raphix@raphix.fr sudo apt update -y"
|
||||||
|
Loading…
Reference in New Issue
Block a user