Commit c1382d47 authored by cpomies's avatar cpomies
Browse files

Add logging to SlotBuildId and change the slot_id_dir

parent 353825f9
......@@ -35,12 +35,13 @@ def indent(elem, level=0):
elem.tail = i
def getIds(slots):
#slot_id_dir = os.environ['JENKINS_HOME']+'/nightlies/'+os.environ['flavours']
slot_id_dir = 'configs/'
slot_id_dir = os.environ['JENKINS_HOME']+'/nightlies/'+os.environ['flavours']
#slot_id_dir = 'configs'
slot_id_file = os.path.join(slot_id_dir, 'slot_id.xml')
if not os.path.exists(slot_id_dir):
os.makedirs(slot_id_dir)'Directory %s created', slot_id_dir)
if os.path.isfile(slot_id_file):
......@@ -52,6 +53,7 @@ def getIds(slots):
else:, os.O_CREAT, 0644)'File %s created', slot_id_file)
root = ET.Element('slot_id')
xmlParse = ET.ElementTree(root)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment