@@ -78,7 +78,8 @@ pipeline {
|
||||
steps {
|
||||
script {
|
||||
def buildTime = sh(script: "TZ='Asia/Novosibirsk' date '+%d-%m-%Y %H:%M:%S'", returnStdout: true).trim()
|
||||
def baseUrl = params.SPRING_PROFILE == 'prod' ? 'https://workspace.not-copy.com' : 'https://dev-workspace.not-copy.com'
|
||||
def baseUrl = params.SPRING_PROFILE == 'prod' ? 'https://workspace.not-copy.com' :
|
||||
'https://dev-workspace.not-copy.com'
|
||||
withCredentials([
|
||||
usernamePassword(
|
||||
credentialsId: 'server-root-password',
|
||||
|
||||
@@ -40,7 +40,10 @@ public class FileSimilarityService {
|
||||
|
||||
private final FileEntityRepository fileEntityRepository;
|
||||
|
||||
@Value("${server.baseurl}")
|
||||
// @Value("${server.baseurl}")
|
||||
// private String baseUrl;
|
||||
|
||||
@Value("${BASE_URL}")
|
||||
private String baseUrl;
|
||||
|
||||
public List<SimilarFileDTO> findDuplicateByHammingDistance(String fileId, int hammingDistance,
|
||||
|
||||
@@ -42,7 +42,10 @@ public class EmailService {
|
||||
@Value("${app.email.verification.drop-password-subject}")
|
||||
private String dropPasswordSubject;
|
||||
|
||||
@Value("${server.baseurl}")
|
||||
// @Value("${server.baseurl}")
|
||||
// private String baseUrl;
|
||||
|
||||
@Value("${BASE_URL}")
|
||||
private String baseUrl;
|
||||
|
||||
@Value("${server.front.port}")
|
||||
|
||||
@@ -86,7 +86,10 @@ public class SearchImageService {
|
||||
@Value("${searchapi.api-key:}")
|
||||
private String searchApiKey;
|
||||
|
||||
@Value("${server.baseurl}")
|
||||
// @Value("${server.baseurl}")
|
||||
// private String appBaseUrl;
|
||||
|
||||
@Value("${BASE_URL}")
|
||||
private String appBaseUrl;
|
||||
|
||||
@PostConstruct
|
||||
|
||||
Reference in New Issue
Block a user