Update Jenkinsfile

pull/6/head
Luis Gerardo Romero Garcia 2023-09-07 15:57:58 +02:00 committed by lgromero
parent f8bf74469e
commit 2fd740cc64
1 changed files with 5 additions and 4 deletions

9
Jenkinsfile vendored
View File

@ -7,6 +7,7 @@ pipeline {
}
environment {
def currentDayOfWeek = new Date().format('EEEE')
def branchName = env.BRANCH_NAME
}
stages {
@ -31,21 +32,21 @@ pipeline {
stage('Create temporaly directory') {
when {
expression {
boolean fileNotPresent = !fileExists('/var/tmp/opengnsys')
boolean fileNotPresent = !fileExists("/var/tmp/opengnsys-${branchName}")
return fileNotPresent
}
}
steps {
sh 'mkdir /var/tmp/opengnsys'
sh "mkdir /var/tmp/opengnsys-${branchName}"
}
}
stage('Copy to temporaly directory') {
steps {
sh 'cp -r ./* /var/tmp/opengnsys'
sh "cp -r ./* /var/tmp/opengnsys-${branchName}"
sh 'ls -la /var/tmp/'
sh 'ls -la /var/tmp/opengnsys'
sh "ls -la /var/tmp/opengnsys-${branchName}"
}
}
stage('Execute opengnsys update) {