p4 unshelve fails in a pipeline job

275 views
Skip to first unread message

Ravi Kondamuru

unread,
Mar 25, 2017, 8:34:40 PM3/25/17
to Jenkins Users
Hi,

I have a pipeline based job where I do an unshelve, if user provides it as input. However, I see that it always indicates "no such files". If i run the command on a regular system it succeeds. I am not able to figure out what this error indicates. 

Any help will be appreciated.

thanks,
Ravi.



Console log:

[vpx] P4 Task: unshelve review: 582305
[vpx] (p4):cmd:... p4 unshelve -f -s582305 -cdefault
[vpx] p4 unshelve -f -s582305 -cdefault
[vpx] 
[vpx]  - no such file(s).
[vpx] 
[vpx] (p4):stop:6
[vpx] ... duration: (7ms)


Jenkinsfile:

checkout([$class: 'PerforceScm', credential:'42c7583c-d502-41d9-abac-d9ab9a9ea574', ...)
if (Shelved_Changelist_No != "") {
    p4unshelve resolve: 'am', shelf:"${Shelved_Changelist_No}", credential:'42c7583c-d502-41d9-abac-d9ab9a9ea574'
}

Ravi Kondamuru

unread,
Mar 28, 2017, 6:13:03 PM3/28/17
to Jenkins Users

I found the following issue in Jenkins issue tracker that seems to be related to what i am seeing:

https://issues.jenkins-ci.org/browse/JENKINS-34014


The workaround suggested helps.


thanks,
Ravi.

Reply all
Reply to author
Forward
0 new messages