forked from Zakaria/ZenProject
fix: 4 - Updating Jenkinsfile
This commit is contained in:
parent
54fbd3e326
commit
d730a1357d
26
Jenkinsfile
vendored
26
Jenkinsfile
vendored
@ -2,35 +2,11 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
|
||||||
steps {
|
|
||||||
// Checkout code from version control
|
|
||||||
git 'https://gitea.zacksolutions.dev/Zakaria/ZenProject.git'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
// Build your project (if needed)
|
// This runs the Maven test phase
|
||||||
sh 'mvn clean install'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Test') {
|
|
||||||
steps {
|
|
||||||
// Install dependencies
|
|
||||||
sh 'mvn dependency:resolve'
|
|
||||||
|
|
||||||
// Run browser tests
|
|
||||||
sh 'mvn test'
|
sh 'mvn test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Generate Reports') {
|
|
||||||
steps {
|
|
||||||
// Generate and store test reports
|
|
||||||
sh 'mvn site'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user