mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:25:50 +00:00
test webhook trigger 8
This commit is contained in:
parent
0c917466f7
commit
05b1576183
1 changed files with 3 additions and 7 deletions
10
Jenkinsfile/Jenkinsfile
vendored
10
Jenkinsfile/Jenkinsfile
vendored
|
@ -1,11 +1,7 @@
|
|||
pipeline {
|
||||
agent any // This runs the pipeline on any available agent
|
||||
|
||||
environment {
|
||||
// Set environment variables if needed
|
||||
APP_DIR = "/home/vagrant/petclinic"
|
||||
REPO_URL = "https://github.com/yiting68/spring-petclinic.git"
|
||||
}
|
||||
|
||||
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
|
@ -18,14 +14,14 @@ pipeline {
|
|||
stage('Build') {
|
||||
steps {
|
||||
// Install dependencies and build the project
|
||||
sh './gradlew clean build' // assuming you are using Gradle
|
||||
gradlew clean build // assuming you are using Gradle
|
||||
}
|
||||
}
|
||||
|
||||
stage('Test') {
|
||||
steps {
|
||||
// Run tests (JUnit tests in this case)
|
||||
sh './gradlew test'
|
||||
./gradlew test
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue