Jump to content

MacOS Jenkins Agent: cm command results in ParseError

Adrian Zdanowicz

Recommended Posts

Attempting to invoke a cm command from a Jenkins Pipeline on a MacOS agent consistently results in a ParseError, despite the fact the command seems to return a well formed XML file.

I'm using the following command to update the Plastic workspace:

cm(branch: '/main/branch_name', repository: 'Repository', server: 'ssl://xxxxxxxxx:yyyy', useUpdate: true, directory: 'repository')

On both Windows and MacOS, invoking this command outputs an XML file with changes, which on MacOS is followed by

FATAL: Parse error: Content is not allowed in prolog.

and causes the stage to fail, which in turn fails the entire Jenkins job.

This seems to happen consistently no matter if the command is invoked from a script section or not and no matter if the return value is ignored or captured to a global variable.

Link to comment
Share on other sites

We have upgraded the plugin to 3.4 and I'm happy to report that the issue has been fixed and the command now succeeds!

We are also still able to get the output ot the cm command by assigning the output to a script variable inside the Jenkins Pipeline, so as far as I can see there are no breaking changes introduced by this change.

Thanks a lot! I consider the issue solved.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...