Commit a3d3c339 authored by Fernando Vazquez's avatar Fernando Vazquez

Adjusted Jenkinsfile to use mvn

parent 5424796e
pipeline { pipeline {
agent any agent any
tools{
maven 'maven'
}
stages { stages {
stage('Git Checkout') { stage('Git Checkout') {
steps{ steps{
echo "Checking out repository" echo "Checking out repository"
git branch: "master", url: "https://gitlab.mynisum.com/fvazquez/hello-world-spring-boot" git branch: "master", url: "https://gitlab.mynisum.com/fvazquez/hello-world-spring-boot"
echo "Checkout complete" echo "Checkout complete"
} }
} }
stage('Test') { stage('Build') {
steps { steps {
echo "Tetsing project..." echo "Building project..."
sh './gradlew clean test --no-daemon' //run a gradle task sh 'mvn -Dmaven.test.failure.ignore=false install'
echo "Test complete"
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment