You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@splincode You can use path.resolve('/') to get root folder (be aware that if you are running node on drive D: it will return 'D:\\' instead of 'C:\\').
If this temp folder is inside your working directory - you can just use paths relative to config file (which is usually in the root of the project) and may omit root property in options (defaults to __dirname)
When I run my builder in TeamCity CI, I get an argument, which directory should be deleted.
Windows
C:\Users\splincode\Git\blackbox/core-adapter-web/target/classes/webapp
Linux
/home/splincode/Git/blackbox/core-adapter-web/target/classes/webapp
So, the path arrives absolute and I can not know exactly where the script can run from. If I use current configuration, it's work in Linux:
But, does not work in Windows, because I need set root as value "C:/". What should I do to make it cross-platform and work?
The text was updated successfully, but these errors were encountered: