Issue
The "Bash Script" task type in Semaphore does not execute scripts.
When running a Bash Script task, the task runner clones the repository,
retrieves commit information, but then silently exits without executing
the script specified in the "Script Filename" field. No output is produced
and no error messages are shown.
Environment:
- Semaphore Version: v2.17.0-243ccd8-1771005891
- Task Type: Bash Script
- Repository: Git (Gitea)
Steps to Reproduce:
- Create a new "Bash Script" task
- Set Script Filename to any executable bash script (e.g.,
test.sh)
- Set Repository and Variable Group
- Run the task
Expected Behavior:
The bash script should execute and produce output
Actual Behavior:
Task completes after "Get current commit message" with no script execution.
The script file is executable (-rwxr-xr-x permissions), present in the
repository, and valid bash syntax.
Workaround:
Using "Python Script" task type to call bash scripts via subprocess works correctly.
Note:
Other task types (Python Script, etc.) execute normally without issues.
This appears to be specific to the Bash Script task type.
Impact
Other
Installation method
Docker
Database
SQLite
Browser
Chrome
Semaphore Version
- Semaphore Version: v2.17.0-243ccd8-1771005891
Ansible Version
Logs & errors
9:09:32 PM
Task bash 376 added to queue
9:09:33 PM
Started: 376
9:09:33 PM
Run TaskRunner with template: bash
9:09:33 PM
Preparing: 376
9:09:33 PM
Cloning Repository ssh://git@gitea:2222/admin/infrastructure.git
9:09:33 PM
Cloning into 'repository_4_template_22'...
9:09:33 PM
Warning: Permanently added '[gitea]:2222' (RSA to the list of known hosts.
9:09:33 PM
Get current commit hash
9:09:33 PM
Get current commit message
Notice: Task completes normally but produces zero output from the script itself. No error messages, no timeout, just silent exit after "Get current commit message."
Manual installation - system information
No response
Configuration
No response
Additional information
No response
Issue
The "Bash Script" task type in Semaphore does not execute scripts.
When running a Bash Script task, the task runner clones the repository,
retrieves commit information, but then silently exits without executing
the script specified in the "Script Filename" field. No output is produced
and no error messages are shown.
Environment:
Steps to Reproduce:
test.sh)Expected Behavior:
The bash script should execute and produce output
Actual Behavior:
Task completes after "Get current commit message" with no script execution.
The script file is executable (
-rwxr-xr-xpermissions), present in therepository, and valid bash syntax.
Workaround:
Using "Python Script" task type to call bash scripts via subprocess works correctly.
Note:
Other task types (Python Script, etc.) execute normally without issues.
This appears to be specific to the Bash Script task type.
Impact
Other
Installation method
Docker
Database
SQLite
Browser
Chrome
Semaphore Version
Ansible Version
Logs & errors
9:09:32 PM
Task bash 376 added to queue
9:09:33 PM
Started: 376
9:09:33 PM
Run TaskRunner with template: bash
9:09:33 PM
Preparing: 376
9:09:33 PM
Cloning Repository ssh://git@gitea:2222/admin/infrastructure.git
9:09:33 PM
Cloning into 'repository_4_template_22'...
9:09:33 PM
Warning: Permanently added '[gitea]:2222' (RSA to the list of known hosts.
9:09:33 PM
Get current commit hash
9:09:33 PM
Get current commit message
Notice: Task completes normally but produces zero output from the script itself. No error messages, no timeout, just silent exit after "Get current commit message."
Manual installation - system information
No response
Configuration
No response
Additional information
No response