I am trying to use the below command in Jenkins pipeline in Groovy Sandbox.
descr -fmt "%[rec_bls]CXp" stream:stream_name@\my_vob
While the command runs properly if executed from windows cmd, but throws below error while executing in a Jenkins stage.
Running batch script
path_to_workspace>cleartool describe -fmt 'stream_name@\my_vob
cleartool: Error: Object selector required.
Usage: describe -graphical pname …
...
…
Below is the Jenkins stage snippet :
stage ('Test') {
agent {label 'Jenkins_Label'}
steps{
bat """
cleartool describe -fmt "%[rec_bls]CXp" stream:stream_name@\\vob_name
"""
}
}