stopped tracking .env, added global example, added env for jenkins pipeline
LocationBasedServices/smartguide/pipeline/head This commit looks good

This commit is contained in:
2026-11-03 15:14:25 +01:00
parent 7f9a2f327a
commit 8cdb2ef78d
5 changed files with 40 additions and 31 deletions
+1
View File
@@ -12,6 +12,7 @@ __pycache__
src/python/account/
*.pyc
.env
node_modules/
angular-app/.angular
Vendored
+6 -2
View File
@@ -17,13 +17,17 @@ pipeline {
stage('Build') {
steps {
sh './gradlew build'
withCredentials([file(credentialsId: 'smartguide-env', variable: 'INSE_ENV_FILE')]) {
sh './gradlew build'
}
}
}
stage('Test') {
steps {
sh './gradlew :service:test'
withCredentials([file(credentialsId: 'smartguide-env', variable: 'INSE_ENV_FILE')]) {
sh './gradlew :service:test'
}
}
}
+4 -1
View File
@@ -33,7 +33,10 @@ task createImage(type: Exec) {
task test(type: Exec) {
dependsOn createImage
commandLine 'docker', 'run', '--rm', '-e', "DOCKER_DEFAULT_PLATFORM='${targetPlatform}'", '--name', "${imageName}-service-test", "${imagePrefix}-service:${imageVersion}", 'test'
def envFile = System.getenv('INSE_ENV_FILE')
def envArgs = envFile ? ['--env-file', envFile] : []
commandLine(['docker', 'run', '--rm', '-e', "DOCKER_DEFAULT_PLATFORM='${targetPlatform}'"] + envArgs +
['--name', "${imageName}-service-test", "${imagePrefix}-service:${imageVersion}", 'test'])
ignoreExitValue false
}
-28
View File
@@ -1,28 +0,0 @@
LLM_API_URL=https://project.nes.uni-due.de/llm2/v1/
LLM_API_KEY=c2d5e7ccf7a4760dd3d19bed2caed9d85ff7437400e0ea82a6d6f912ebc2f212
LLM_MODEL=gemma4-e4b
# Patent search (EPO + USPTO)
PATENT_ELASTICSEARCH_URL=https://inse.nes.uni-due.de/elastic
PATENT_ELASTICSEARCH_API_KEY=bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw==
ELASTICSEARCH_URL=https://project.nes.uni-due.de/elastic
ELASTICSEARCH_API_KEY=am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ
ELASTICSEARCH_INSE_URL=https://inse.nes.uni-due.de/elastic
ELASTICSEARCH_INSE_API_KEY=bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw==
# Debugging: Log every outgoing Elasticsearch query (index + payload)
PRINT_ES_QUERIES=false
# Debugging: Log the duration of every Elasticsearch request
PRINT_ES_TIMINGS=true
# Sentence Transformers Configuration
SENTENCE_TRANSFORMERS_MODEL_NAME=intfloat/multilingual-e5-base
TOKEN_ISSUER_ID=inse
TOKEN_HMAC_KEY=9dd09c80dd0796fa24bd2007f4cf57fc28c9a38909b7e83bb2d73121c5bc69c7
# Docker-Registry-Login für Background-Jobs (Nexus, nes.uni-due.de)
BACKGROUND_JOBS_REGISTRY_USERNAME=student
BACKGROUND_JOBS_REGISTRY_PASSWORD=nes-student!
+29
View File
@@ -0,0 +1,29 @@
LLM_API_URL=
LLM_API_KEY=
LLM_MODEL=
# Patent search (EPO + USPTO)
PATENT_ELASTICSEARCH_URL=
PATENT_ELASTICSEARCH_API_KEY=
ELASTICSEARCH_URL=
ELASTICSEARCH_API_KEY=
ELASTICSEARCH_INSE_URL=
ELASTICSEARCH_INSE_API_KEY=
# Debugging: Log every outgoing Elasticsearch query (index + payload)
PRINT_ES_QUERIES=
# Debugging: Log the duration of every Elasticsearch request
PRINT_ES_TIMINGS=
# Sentence Transformers Configuration
SENTENCE_TRANSFORMERS_MODEL_NAME=
TOKEN_ISSUER_ID=
TOKEN_HMAC_KEY=
# Docker-Registry-Login für Background-Jobs (Nexus, nes.uni-due.de)
BACKGROUND_JOBS_REGISTRY_USERNAME=
BACKGROUND_JOBS_REGISTRY_PASSWORD=