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: ...@@ -441,8 +441,8 @@ objects:
- name: ENABLE_FATAL_ERROR_LOG_FILE - name: ENABLE_FATAL_ERROR_LOG_FILE
value: 'false' value: 'false'
volumeMounts: volumeMounts:
- name: jenkins-volume - name: jenkins-volume
mountPath: /var/lib/jenkins mountPath: /var/lib/jenkins
terminationMessagePath: /dev/termination-log terminationMessagePath: /dev/termination-log
securityContext: securityContext:
capabilities: {} capabilities: {}
......
import os import os
import time import time
from urllib import parse, request
import urllib3 import urllib3
from jenkins import Jenkins from jenkins import Jenkins
from jenkins import JenkinsException from jenkins import JenkinsException
from urllib import parse, request
DEBUG = False DEBUG = False
...@@ -38,7 +37,9 @@ def validate(job): ...@@ -38,7 +37,9 @@ def validate(job):
job.working_dir = os.popen( job.working_dir = os.popen(
'find ' + FOLDER + ' -maxdepth 1 -type d -not -path ' + FOLDER + '/__pycache__ -not -path ' + FOLDER + '') \ 'find ' + FOLDER + ' -maxdepth 1 -type d -not -path ' + FOLDER + '/__pycache__ -not -path ' + FOLDER + '') \
.read()[0:-1] + '/' .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) server = Jenkins(JENKINS_URL, JENKINS_USERNAME, JENKINS_SECRET)
create_pipeline(server) create_pipeline(server)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment