| Hi Karl Wirth, I'm trying to change my job to run a P4Groovy, and I've created an example as in the link you've shared, and i'm getting the following error:
[Pipeline] End of Pipeline
ERROR: P4: Task Exception: Invalid credentials
This is my test code:
node("my_node") {
// Define workspace
def ws = [$class: 'StreamWorkspaceImpl',
charset: 'none', format: 'jenkins-${JOB_NAME}',
pinHost: false, streamName: '//my_workspace']// Create object
def p4 = p4 (credential: 'my_client', workspace: manualSpec(charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}', pinHost: false, spec: clientSpec(allwrite: false, backup: true, changeView: '', clobber: true, compress: false, line: 'LOCAL', locked: false, modtime: false, rmdir: false, serverID: '', streamName: '', type: 'WRITABLE', view: 'my_workspace')))
p4.run('sync','...')
}
Please note that "my_client" is the same using in other working jobs. Is there any additional configuration needed on my job, rather then what is on the shared link (de-select groovy sandbox) ? Thanks for the help! |