Skip to content
Snippets Groups Projects
Commit 3f5434af authored by KPOTY Kpotivi's avatar KPOTY Kpotivi
Browse files

modif jenkinsfile

parent 79bf9124
No related branches found
No related tags found
No related merge requests found
pipeline {
agent any
tools {
maven 'maven3'
}
options {
buildDiscarder logRotator(
daysToKeepStr: '15',
numToKeepStr: '10'
)
}
environment {
APP_NAME = "DCUBE_APP"
APP_ENV = "DEV"
}
stages {
stage('Cleanup Workspace') {
steps {
cleanWs()
sh """
bat """
echo "Cleaned Up Workspace for ${APP_NAME}"
"""
}
}
stage('Code Checkout') {
steps {
checkout([
$class: 'GitSCM',
branches: [[name: '*/main']],
userRemoteConfigs: [[url: 'https://etulab.univ-amu.fr/k19025322/pipeline-as-code.git']]
userRemoteConfigs: [[url: 'https://github.com/spring-projects/spring-petclinic.git']]
])
}
}
stage('Code Build') {
steps {
sh 'mvn install -Dmaven.test.skip=true'
bat 'mvn install -Dmaven.test.skip=true'
}
}
stage('Priting All Global Variables') {
stage('Printing All Global Variables') {
steps {
sh """
env
bat """
set
"""
}
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment