Skip to content

Problem: Bash Script task type fails to execute scripts - no output, no error messages #3700

@w3netadmin

Description

@w3netadmin

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:

  1. Create a new "Bash Script" task
  2. Set Script Filename to any executable bash script (e.g., test.sh)
  3. Set Repository and Variable Group
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions