CI pipeline is not executing commands as expected (OD-264)
Sebastien Collier opened 5 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 5 years ago
    Name Previous Value Current Value
    Priority
    Critical
    Major
  • Robin Shen changed state to 'Closed' 5 years ago
    Previous Value Current Value
    Open
    Closed
  • Robin Shen commented 5 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/1
Type
Bug
Priority
Major
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (3)
Reference
OD-264
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover