Anul 3 Semestrul 2
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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']]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user