From faa4053b5244a0eb413e8796baf3b07de3466703 Mon Sep 17 00:00:00 2001 From: rforstner Date: Mon, 22 Nov 2021 16:02:12 +0100 Subject: [PATCH] init commit --- Jenkinsfile | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e69de29..0ffe275 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -0,0 +1,45 @@ + pipeline { + options { + ansiColor('xterm') + } + //label libraryBuild is available in CN JAWS and ROW JAWS, therefore this one was used; no additional intents + agent{label 'libraryBuild'} + environment { + + /* + //ProxySettings + AUTH = credentials('proxy') + proxy_user = "${AUTH_USR}" + proxy_pw = "${AUTH_PSW}" + http_proxy="http://${proxy_user}:${proxy_pw}@proxy.muc:8080" + https_proxy="http://${proxy_user}:${proxy_pw}@proxy.muc:8080" + no_proxy="localhost,127.0.0.1,.muc,.bmwgroup.net" + HTTP_PROXY="${http_proxy}" + HTTPS_PROXY="${https_proxy}" + NO_PROXY="${no_proxy}" + */ + + EUPROD_TOKEN_VAR = credentials('EUPROD_TOKEN_VAR') + EUPREPROD_TOKEN_VAR = credentials('EUPREPROD_TOKEN_VAR') + NAPROD_TOKEN_VAR = credentials('NAPROD_TOKEN_VAR') + NAPREPROD_TOKEN_VAR = credentials('NAPREPROD_TOKEN_VAR') + CNPROD_TOKEN_VAR = credentials('CNPROD_TOKEN_VAR') + CNPREPROD_TOKEN_VAR = credentials('CNPREPROD_TOKEN_VAR') + + } + + stages { + stage('install required packages') { + steps { + sh ''' + pip install -r requirements.txt + ''' + } + } + } + post { + always { + cleanWs() + } + } +} \ No newline at end of file