Files
School/Anul 3/Semestrul 2/SSVV/Pipeline.json
T
2025-07-03 20:56:38 +03:00

34 lines
803 B
JSON

pipeline {
agent any
stages {
stage('Clean Workspace') {
steps {
sh 'rm -rf *'
}
}
stage('Clone the repository') {
steps {
git branch: 'main', url: 'http://gitea:3000/admin/project.git'
sh 'tree'
}
}
stage('Build') {
steps {
sh 'mvn clean install -DskipTests'
}
}
stage('Run a Test'){
steps{
sh 'mvn -Dtest=*Test verify'
}
}
stage('Publish Allure Report') {
steps {
allure includeProperties: false, jdk: '', results: [[path: 'target/allure-results']]
}
}
}
}