Is it possible to automate publishing using a script?

I would like to automate the publish process using a CI/CD server. Has anyone done this before and is it even possible? I have searched in vain for any online docs.

Yes, it’s possible but required due to backend setup, not frontend. I would love to have that for frontend so I don’t have to bug IT :stuck_out_tongue:

Good Afternoon Sean

If you place this command in a batch file in the Rhythmyx installation directory you can execute it on the schedule you choose. The parameters you would need to pass are the host, port, and the edition id.

./JRE/bin/java -cp ./AppServer/webapps/RxServices/WEB-INF/lib/rxpublisher.jar;./AppServer/webapps/RxServices/WEB-INF/lib/rxmisct
ools.jar com.precussion.publisher.runner.PSRemotePublisher localhost 9992 320

Hopefully, this is helpful - have a great night and thank you for using the Percussion community

That’s great, thank you.

I am getting the following error though:

no main manifest attribute, in /opt/Rhythmyx/AppServer/server/rx/deploy/RxServices.war/WEB-INF/lib/rxmisctools.jar

Panic over!!! I am running on Linux so just had to swap the semi-colon in the classpath for a colon.

Good Morning Sean 
It looks like you are all set I am glad we were able to assist in your question. Thank you for using the Percussion Community. You can also always email the Percussion technical support team @  support@percussion.com
Have a great day Sean

Just updating this post; here are some recommendations for using the scheduled publishing commands in Rhythmyx.  For CM1 customers wishing to use scheduled publishing, please refer to this document:

https://help.percussion.com/percussion-cm1/site-administration/configuring-scheduled-publishing/inde…

In the scenarios below, ‘localhost’ is the name of the server, ‘9992’ is the port Rhythmyx is running on, and ‘301’ is the edition ID.  This can be found under the setup for the publishing server in the Publishing Design menu.

For Rhythmyx:

In a command prompt, cd to the Rhythmyx home directory and run:

.\JRE\bin\java -cp .\AppServer\server\rx\lib\rxutils.jar;.\AppServer\server\rx\deploy\rxapp.ear\rxapp.war\WEB-INF\lib\rxmisctools.jar;.\AppServer\server\rx\deploy\rxapp.ear\rxapp.war\WEB-INF\lib\rxpublisher.jar; com.percussion.publisher.runner.PSRemotePublisher localhost 9992 301

For Rhythmyx using Jetty:

cd to the Jetty home directory and run:

…\JRE\bin\java -cp .\base\webapps\Rhythmyx\WEB-INF\lib\rxutils.jar;.\base\webapps\Rhythmyx\WEB-INF\lib\rxmisctools.jar;.\base\webapps\Rhythmyx\WEB-INF\lib\rxpublisher.jar; com.percussion.publisher.runner.PSRemotePublisher localhost 9992 301