From 6e38779dfe29eb6ca58a7ab34fb09f014cbe679d Mon Sep 17 00:00:00 2001 From: Erik Mackdanz Date: Sat, 19 Jul 2025 06:39:43 +0000 Subject: [PATCH] waterslager, write service files to target --- master.cfg | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/master.cfg b/master.cfg index fde2a56..3d3217f 100644 --- a/master.cfg +++ b/master.cfg @@ -516,20 +516,77 @@ c['builders'].append(BuilderConfig( haltOnFailure=True,logname="step"), ShellArg(command=["rm","-f","waterslager.tar.gz"], haltOnFailure=True,logname="step"), - ShellArg(command=["tar","czf",util.Interpolate("waterslager-%(prop:shortrev)s.tar.gz"),"waterslager"], + ShellArg(command=["tar","czf", + util.Interpolate("waterslager-%(prop:shortrev)s.tar.gz"), + "waterslager"], haltOnFailure=True,logname="step"), ], haltOnFailure=True, ), ShellSequence( - name="copy waterslager to sra0", + name="copy application tarball to target", commands=[ - ShellArg(command=["scp",util.Interpolate("waterslager-%(prop:shortrev)s.tar.gz"),"sra0:~"], + ShellArg(command=[ + "scp", + util.Interpolate("waterslager-%(prop:shortrev)s.tar.gz"), + "sra0:~"], haltOnFailure=True,logname="step"), ShellArg(command=["ssh","sra0","rm","-f","waterslager-latest.tar.gz"], haltOnFailure=True,logname="step"), - ShellArg(command=["ssh","sra0","ln","-s",util.Interpolate("waterslager-%(prop:shortrev)s.tar.gz"),"waterslager-latest.tar.gz"], + ShellArg(command=["ssh","sra0","ln","-s", + util.Interpolate("waterslager-%(prop:shortrev)s.tar.gz"), + "waterslager-latest.tar.gz"], haltOnFailure=True,logname="step"), + ShellArg(command=["ssh","sra0","chmod","g+r", + util.Interpolate("waterslager-%(prop:shortrev)s.tar.gz")], + haltOnFailure=True,logname="step"), + ], + haltOnFailure=True, + ), + ShellSequence( + name="generate support files on target", + commands=[ + ShellArg(command=[ + "ssh","sra0","sh","-c", + + # note no commas to concatenate a single string + "cat >waterslager-prep.service <waterslager.service <