Hi Team,
Please let me know if there is a way to execute python script (ex abc.py) in build-hook using --script option
Regards,
Kuldeep
Hi All
I did some research and found below details .We can execute .py file using "command" option and script option:
oc set build-hook bc/app --post-commit --script="python /opt/app-root/src/abc.py"
or
oc set build-hook bc/app --post-commit --command -- python /opt/app-root/src/abc.py
After setting build-hook we can validate its execution by starting new build using below command:
oc start-build bc/app -F
Regards,
Kuldeep
Hi All
I did some research and found below details .We can execute .py file using "command" option and script option:
oc set build-hook bc/app --post-commit --script="python /opt/app-root/src/abc.py"
or
oc set build-hook bc/app --post-commit --command -- python /opt/app-root/src/abc.py
After setting build-hook we can validate its execution by starting new build using below command:
oc start-build bc/app -F
Regards,
Kuldeep
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.