diff --git a/Jenkinsfile/Jenkinsfile b/Jenkinsfile/Jenkinsfile index 2e4308fed..65494cd6d 100644 --- a/Jenkinsfile/Jenkinsfile +++ b/Jenkinsfile/Jenkinsfile @@ -1,7 +1,11 @@ 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') { @@ -14,14 +18,14 @@ pipeline { stage('Build') { steps { // Install dependencies and build the project - gradlew clean build // assuming you are using Gradle + sh './gradlew clean build' // assuming you are using Gradle } } stage('Test') { steps { // Run tests (JUnit tests in this case) - ./gradlew test + sh './gradlew test' } } diff --git a/src/main/resources/messages/messages.properties b/src/main/resources/messages/messages.properties index 1b488e7b5..2fcfc1baa 100644 --- a/src/main/resources/messages/messages.properties +++ b/src/main/resources/messages/messages.properties @@ -7,8 +7,8 @@ duplicateFormSubmission=Duplicate form submission is not allowed typeMismatch.date=invalid date typeMismatch.birthDate=invalid date owner=Owner -firstName=First Name -lastName=Last Name +firstName=enter your First Name +lastName=enter you Last Name address=Address city=City telephone=Telephone