fix jenkinsfile
This commit is contained in:
parent
60326fcd26
commit
e112b80f25
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -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'"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user