Using Jenkins build master on SUSE SLES 12 together with a node machine (Windows Server 2016) connected by JNLP and running under Windows Service as follows:
When I execute distributed build on Windows Server for checking out Harvest CA, file.separator used as '/'
Also when I run the following script through pipeline on Windows node, I get file.separator value as '/' (without quote):
echo File.separator if(isUnix()){
echo 'isUnix()'
}else{
echo 'WINDOWS'
}
File.separator is a Java API invocation. It will always return Master's separator if you whitelist the method. So Pipeline issue is not a defect.
If Harvest plugin behaves in such way, likely there is a defect there
Oleg Nenashev
added a comment - File.separator is a Java API invocation. It will always return Master's separator if you whitelist the method. So Pipeline issue is not a defect.
If Harvest plugin behaves in such way, likely there is a defect there
hi oleg_nenashev i no longer use this plugin, so chances are I will not fix the issue. would recommend you fix yourself and send a PR. I can probably accept the PR if I still have access.
Adam
added a comment - hi oleg_nenashev i no longer use this plugin, so chances are I will not fix the issue. would recommend you fix yourself and send a PR. I can probably accept the PR if I still have access.
abedwards I am just a guy who triages incoming issues. I do not use the plugin on my own, and I will unlikely fix it as well.
I can check and restore your permissions tho. If you are not interested in the plugin, would you be fine if I mark it for adoption?
Oleg Nenashev
added a comment - abedwards I am just a guy who triages incoming issues. I do not use the plugin on my own, and I will unlikely fix it as well.
I can check and restore your permissions tho. If you are not interested in the plugin, would you be fine if I mark it for adoption?
This is just a plain groovy script I am running through plugin on a windows node. I am getting te result as:
'/' (without quotes)
WINDOWS
Umesh Chhabra
added a comment - oleg_nenashev Thank you for looking into this issue.
For time being, Let's ignore the Harvest Plugin. When I run the following script, I get the separator as '/':
node('windows'){
echo File.separator if(isUnix()){
echo 'isUnix()'
}else{
echo 'WINDOWS'
}}
This is just a plain groovy script I am running through plugin on a windows node. I am getting te result as:
'/' (without quotes)
WINDOWS
I wonder if there is any fix for that or workaround? it should be basic requirement
Thanks
Limor Segal Shevah
added a comment - - edited Hi,
I wonder if there is any fix for that or workaround? it should be basic requirement
Thanks
Unassigned
Umesh Chhabra
Votes:
1Vote for this issue
Watchers:
4Start watching this issue
Created:
Updated:
{"errorMessages":["jqlTooComplex"],"errors":{}}
[{"id":-1,"name":"My open issues","jql":"assignee = currentUser() AND resolution = Unresolved order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-2,"name":"Reported by me","jql":"reporter = currentUser() order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-4,"name":"All issues","jql":"order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-5,"name":"Open issues","jql":"resolution = Unresolved order by priority DESC,updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-9,"name":"Done issues","jql":"statusCategory = Done order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-3,"name":"Viewed recently","jql":"issuekey in issueHistory() order by lastViewed DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-6,"name":"Created recently","jql":"created >= -1w order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-7,"name":"Resolved recently","jql":"resolutiondate >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-8,"name":"Updated recently","jql":"updated >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false}]
File.separator is a Java API invocation. It will always return Master's separator if you whitelist the method. So Pipeline issue is not a defect.
If Harvest plugin behaves in such way, likely there is a defect there