fix jenkinsfile

This commit is contained in:
Anton Romanov 2022-11-09 11:53:42 +04:00
parent 60326fcd26
commit e112b80f25
3 changed files with 1 additions and 5 deletions

2
Jenkinsfile vendored
View File

@ -13,7 +13,7 @@ pipeline {
stage('Test') {
steps {
sh 'java -version'
sh 'bash ./gradlew bootRun -Dexample-web.check-run=true'
sh "bash ./gradlew bootRun --args='--example-web.check-run=true'"
}
}
}

View File

@ -3,12 +3,10 @@ package ru.ulstu;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.event.EventListener;
import ru.ulstu.configuration.ApplicationProperties;
@SpringBootApplication
@EnableConfigurationProperties
public class ExampleWebApplication {
private final ApplicationProperties applicationProperties;

View File

@ -2,11 +2,9 @@ package ru.ulstu.configuration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
@Component
@ConfigurationProperties(prefix = "example-web")
@Validated
public class ApplicationProperties {
private boolean checkRun;