Duplication:
- Go to http://<jenkins>/computer/<node>/script
- Run:
import org.jenkinsci.plugins.p4.workspace.StreamWorkspaceImpl; import org.jenkinsci.plugins.p4.groovy.P4Groovy; def ws = new StreamWorkspaceImpl('none', false, '//Stream_Depot/Main', 'job1-temp-branch1') def p4 = new P4Groovy('bad credential', null, ws, new FilePath(new File('workspace'))) def result = p4.run('status')
- The error message returned is 'hudson.AbortException: P4: Task Exception: null'
This can also be duplicated by using a bad credential in a Jenkinsfile using the normal syntax:
def ws = [$class: 'StreamWorkspaceImpl', charset: 'none', format: env.JOB_NAME + '-temp-' + env.BRANCH_NAME, pinHost: false, streamName: '//Stream_Depot/' + env.BRANCH_NAME] def p4 = p4(credential: 'bad credential', workspace: ws) def result = p4.run('streams')
Expected result:
An error message stating that the credential is not found.
[JENKINS-55430] P4Groovy - Credential not found error does not propagate
Description |
Original:
Duplication: # Go to http://<jenkins>/computer/<node>/script # Run: {code:java} import org.jenkinsci.plugins.p4.workspace.StreamWorkspaceImpl; import org.jenkinsci.plugins.p4.groovy.P4Groovy;def ws = new StreamWorkspaceImpl('none', false, '//Device_SeriesT/Main', 'job1-temp-branch1'){code} {code:java} def p4 = new P4Groovy('f02cd8e4-12f7-4107-8db2-bd0d96fed271', null, ws, new FilePath(new File('E:/DTHTemp'))) def result = p4.run('status') {code} |
New:
Duplication: # Go to http://<jenkins>/computer/<node>/script # Run: {code:java} import org.jenkinsci.plugins.p4.workspace.StreamWorkspaceImpl; import org.jenkinsci.plugins.p4.groovy.P4Groovy; def ws = new StreamWorkspaceImpl('none', false, '//Device_SeriesT/Main', 'job1-temp-branch1') def p4 = new P4Groovy('bad credential', null, ws, new FilePath(new File('E:/DTHTemp'))) def result = p4.run('status'){code} # The error message returned is 'hudson.AbortException: P4: Task Exception: null' Expected result: An error message stating that the credential is not found. |
Comment | [ Working on completing the description. Accidentally used the wrong keyboard shortcut trying to format the description. ] |
Summary | Original: P4Groovy - Credential not found does not propagate | New: P4Groovy - Credential not found error does not propagate |
Description |
Original:
Duplication: # Go to http://<jenkins>/computer/<node>/script # Run: {code:java} import org.jenkinsci.plugins.p4.workspace.StreamWorkspaceImpl; import org.jenkinsci.plugins.p4.groovy.P4Groovy; def ws = new StreamWorkspaceImpl('none', false, '//Device_SeriesT/Main', 'job1-temp-branch1') def p4 = new P4Groovy('bad credential', null, ws, new FilePath(new File('E:/DTHTemp'))) def result = p4.run('status'){code} # The error message returned is 'hudson.AbortException: P4: Task Exception: null' Expected result: An error message stating that the credential is not found. |
New:
*Duplication:* # Go to http://<jenkins>/computer/<node>/script # Run: {code:java} import org.jenkinsci.plugins.p4.workspace.StreamWorkspaceImpl; import org.jenkinsci.plugins.p4.groovy.P4Groovy; def ws = new StreamWorkspaceImpl('none', false, '//Device_SeriesT/Main', 'job1-temp-branch1') def p4 = new P4Groovy('bad credential', null, ws, new FilePath(new File('E:/DTHTemp'))) def result = p4.run('status'){code} # The error message returned is 'hudson.AbortException: P4: Task Exception: null' This can also be duplicated by using a bad credential in a Jenkinsfile using the normal syntax: {code:java} def ws = [$class: 'StreamWorkspaceImpl', charset: 'none', format: env.JOB_NAME + '-temp-' + env.BRANCH_NAME, pinHost: false, streamName: '//Device_SeriesT/' + env.BRANCH_NAME] def p4 = p4(credential: 'bad credential', workspace: ws) def result = p4.run('streams'){code} *Expected result:* An error message stating that the credential is not found. |
Description |
Original:
*Duplication:* # Go to http://<jenkins>/computer/<node>/script # Run: {code:java} import org.jenkinsci.plugins.p4.workspace.StreamWorkspaceImpl; import org.jenkinsci.plugins.p4.groovy.P4Groovy; def ws = new StreamWorkspaceImpl('none', false, '//Device_SeriesT/Main', 'job1-temp-branch1') def p4 = new P4Groovy('bad credential', null, ws, new FilePath(new File('E:/DTHTemp'))) def result = p4.run('status'){code} # The error message returned is 'hudson.AbortException: P4: Task Exception: null' This can also be duplicated by using a bad credential in a Jenkinsfile using the normal syntax: {code:java} def ws = [$class: 'StreamWorkspaceImpl', charset: 'none', format: env.JOB_NAME + '-temp-' + env.BRANCH_NAME, pinHost: false, streamName: '//Device_SeriesT/' + env.BRANCH_NAME] def p4 = p4(credential: 'bad credential', workspace: ws) def result = p4.run('streams'){code} *Expected result:* An error message stating that the credential is not found. |
New:
*Duplication:* # Go to http://<jenkins>/computer/<node>/script # Run: {code:java} import org.jenkinsci.plugins.p4.workspace.StreamWorkspaceImpl; import org.jenkinsci.plugins.p4.groovy.P4Groovy; def ws = new StreamWorkspaceImpl('none', false, '//Stream_Depot/Main', 'job1-temp-branch1') def p4 = new P4Groovy('bad credential', null, ws, new FilePath(new File('workspace'))) def result = p4.run('status'){code} # The error message returned is 'hudson.AbortException: P4: Task Exception: null' This can also be duplicated by using a bad credential in a Jenkinsfile using the normal syntax: {code:java} def ws = [$class: 'StreamWorkspaceImpl', charset: 'none', format: env.JOB_NAME + '-temp-' + env.BRANCH_NAME, pinHost: false, streamName: '//Stream_Depot/' + env.BRANCH_NAME] def p4 = p4(credential: 'bad credential', workspace: ws) def result = p4.run('streams'){code} *Expected result:* An error message stating that the credential is not found. |
Assignee | New: Karl Wirth [ p4karl ] |
Labels | New: P4_B |
Assignee | Original: Karl Wirth [ p4karl ] | New: Charusheela Bopardikar [ cbopardikar ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Fixed but Unreleased [ 10203 ] |