Aliases not working in the Pipeline
Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.
Summary
Problem
Aliases not working in the Pipeline
alias listing="ls -lrt"
listing
The above command returns command not found (or similar error)
Diagnosis
Check the value of expand-aliases in the Pipeline by running the following command before using the Alias
shoptVerify the value of expand-aliasesis set to On.
Cause
Aliases by default not supported and enabled in the Bash. If the expand-aliasesis set to Off, the Aliases will not be expanded by default
Solution
Enable expand-aliases option before using the aliases using the following command
shopt -s expand_aliasesUpdated on September 26, 2025
Was this helpful?
Still need help?
The Atlassian Community is here for you.