tgayda

Cadet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2021
09:04 PM
- 2,484 Views
Failure to use file instead of direct script. --script=hook.py option fails. hook.py is treated as a command. Please, help
1 Solution
Accepted Solutions


Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2021
10:42 AM
- 2,442 Views
Hi! First of all your hook.py script must exist in directory.
Second hook.py file must be executable. ensure that is chmod +x hook.py
Or you can start python script manually with --command='python3 ./hook.py'
dmis.
2 Replies


Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2021
10:42 AM
- 2,443 Views
Hi! First of all your hook.py script must exist in directory.
Second hook.py file must be executable. ensure that is chmod +x hook.py
Or you can start python script manually with --command='python3 ./hook.py'
dmis.
danielenegroni

Mission Specialist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2022
09:22 AM
- 1,787 Views
This solution does not work.
I also tried something like this but still not working:
oc set build-hook bc/name --post-commit --script=”pyhon3 hook.py”
Help will be appreciated.
Join the discussion
You must log in to join this conversation.