test webhook trigger 8

This commit is contained in:
yyeeqii 2025-04-27 13:26:17 +08:00
parent 0c917466f7
commit 05b1576183

View file

@ -1,11 +1,7 @@
pipeline { pipeline {
agent any // This runs the pipeline on any available agent 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 { stages {
stage('Checkout') { stage('Checkout') {
@ -18,14 +14,14 @@ pipeline {
stage('Build') { stage('Build') {
steps { steps {
// Install dependencies and build the project // 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') { stage('Test') {
steps { steps {
// Run tests (JUnit tests in this case) // Run tests (JUnit tests in this case)
sh './gradlew test' ./gradlew test
} }
} }