#264  CI pipeline is not executing commands as expected
Closed
Sebastien Collier opened 3 years ago

In my .onedev-buildspec.yml I invoke a script that contains this line

install -D "${graphitedir}/opt-${arch}/lib/*.so*" "${appdir}/usr/lib

In my log output I have

15:13:56+ install -D '/onedev-build/workspace/build/lib*.so' /onedev-build/workspace/build/NodeServerAppDir/usr/lib
15:13:56install: cannot stat '/onedev-build/workspace/build/lib*.so': No such file or directory

Onedev is somehow adding in single quotes around glob expressions, making them fail.

Sebastien Collier changed fields 3 years ago
Name Previous Value Current Value
Priority
Critical
Major
Robin Shen changed state to 'Closed' 3 years ago
Previous Value Current Value
Open
Closed
Robin Shen commented 3 years ago

This is not a bug. As long as you quote (no matter it is double quote or single quote) the parameters, they will be treated literally.

issue 1 of 1
Type
Bug
Priority
Major
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (3)
Reference
onedev/server#264
Please wait...
Page is in error, reload to recover