Skip to content

Instantly share code, notes, and snippets.

@qrtt1
Created January 15, 2013 09:26
Show Gist options
  • Save qrtt1/4537487 to your computer and use it in GitHub Desktop.
Save qrtt1/4537487 to your computer and use it in GitHub Desktop.
My Remote Scripting Lab
/* run ant script to packaging changed files */
var commands = "cd c:\\ind\\UpdateServer\nant pack.update.zip";
var ret = std.system(commands);
/* upload the zip artifact to repo server */
var zipInfo = std.findLine(ret, "Building zip");
var zipFile = std.strAfter(zipInfo[0], "Building zip: ");
std.log(">>" + zipFile + "<<");
std.upload(zipFile);
qty:RemoteCtrl qrtt1$ ./app exec dev scripts/packaging.js
[2013-01-15 17:23:26] dev(00:0c:29:23:9a:00)
C:\deployer\App>cd c:\ind\UpdateServer
C:\ind\UpdateServer>ant pack.update.zip
Buildfile: C:\ind\UpdateServer\build.xml
make.current.releasenote:
[delete] Deleting: C:\ind\UpdateServer\docs\releasenote\releasenote_20130115.txt
[copy] Copying 1 file to C:\ind\UpdateServer\docs\releasenote
make.current.packinfo:
[delete] Deleting: C:\ind\UpdateServer\docs\packinfo\20130115.properties
[copy] Copying 1 file to C:\ind\UpdateServer\docs\packinfo
pack.update.zip:
[delete] Deleting: C:\ind\UpdateServer\dist\IXD_update20130115.zip
[zip] Building zip: C:\ind\UpdateServer\dist\IXD_update20130115.zip
BUILD SUCCESSFUL
Total time: 1 second
[2013-01-15 17:23:27] dev(00:0c:29:23:9a:00)
<<C:\ind\UpdateServer\dist\IXD_update20130115.zip
[2013-01-15 17:23:28] dev(00:0c:29:23:9a:00)
scp-input: C:\ind\UpdateServer\dist\IXD_update20130115.zip
[2013-01-15 17:23:29] dev(00:0c:29:23:9a:00)
scp-output: foo@qty.org:/opt/REPOS_ZK_DEPLOYER/IXD_update20130115.zip
[2013-01-15 17:23:36] dev(00:0c:29:23:9a:00)
IXD_update20130115.zip | 372 kB | 372.5 kB/s | ETA: 00:00:00 | 100%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment