Skip to content
Snippets Groups Projects
Commit a89961cf authored by Lukas Köhler's avatar Lukas Köhler
Browse files

new validation script and new openshift template

parent 16b6efb6
No related branches found
No related tags found
No related merge requests found
......@@ -441,8 +441,8 @@ objects:
- name: ENABLE_FATAL_ERROR_LOG_FILE
value: 'false'
volumeMounts:
- name: jenkins-volume
mountPath: /var/lib/jenkins
- name: jenkins-volume
mountPath: /var/lib/jenkins
terminationMessagePath: /dev/termination-log
securityContext:
capabilities: {}
......
import os
import time
from urllib import parse, request
import urllib3
from jenkins import Jenkins
from jenkins import JenkinsException
from urllib import parse, request
DEBUG = False
......@@ -38,7 +37,9 @@ def validate(job):
job.working_dir = os.popen(
'find ' + FOLDER + ' -maxdepth 1 -type d -not -path ' + FOLDER + '/__pycache__ -not -path ' + FOLDER + '') \
.read()[0:-1] + '/'
job.run_make(mandatory=True)
for fname in os.listdir('.'):
if fname.endswith('Makefile'):
job.run_make(mandatory=True)
server = Jenkins(JENKINS_URL, JENKINS_USERNAME, JENKINS_SECRET)
create_pipeline(server)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment