To submit a STAX job via the command line, you can use the STAF command
line executable to submit a STAX EXECUTE request. For example:
C:\>STAF local STAX EXECUTE FILE C:/tests/test1.xml JOBNAME "Test 1"
Response
--------
3
If the job is submitted successfully (RC=0), the job ID of the STAX job
that was started will be returned in the result.
To start the STAX Monitor for this job ID via the command line (assuming
the STAX job has not already ended), you can use the -job parameter to
specify this job ID to monitor. You can also optionally specify the
-closeonend parameter to specify that the STAX Monitor GUI should be
closed when the monitored job ends. By default, the STAX Monitor GUI
remains open when the monitored job ends. For example:
C:\>java -jar C:\STAF\services\stax\STAXMon.jar -job 3 -closeonend
Or, you can start the STAX Monitor and execute a STAX job in a single
command by using the -jobparms parameter when starting the STAX Monitor to
avoid issues where the STAX job ends quickly before the STAX Monitor is
started, etc. Parameter -jobparms specifies a Job Parameters File for
which a new STAX job should be submitted (and monitored, if specified in
the Job Parameters File). You must first create a Job Parameters File for
the STAX job you want to submit via the STAX Monitor's "Start Job
Parameters" panel (e.g. by clicking the "Submit New Job..." button on the
main panel) and specifying the name of the XML Job File and any other job
parameters you want (such as a Job Name, Start Function, Arguments to pass
to the Start Function, etc) and then select "File->Save As..." (or
"File->Save") from the menu bar to save the job parameters to a file. Then
you can start the STAX Monitor and have it execute this STAX job as
follows:
C:\>java -jar C:\STAF\services\stax\STAXMon.jar -jobparms
C:/tests/test1JobParms -closeonend
See section "Starting the STAX Monitor" in the STAX User's Guide at
http://staf.sourceforge.net/current/STAX/staxug.html#Header_StartMonitor
for more information on how to start the STAX Monitor and the command line
parameters that can be passed to it.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Luca Robusto <lucarobu...@gmail.com>
To: "staf-users@lists.sourceforge.net"
<staf-users@lists.sourceforge.net>,
Date: 07/17/2014 01:58 AM
Subject: [staf-users] Need to integrate STAX Job inside Jenkins
Hi all,
I need to execute STAX Job integrating them inside Jenkins.
I need to execute the Job with STAX Monitor enabled, to view the Monitor
during real time execution.
Which is the CLI command to run an XML File with the Stax Monitor opened?
Thanks.
Luca
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users