Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How does JIRA determine wether the deployment was against a prod or non-prod env?

Martijn Lindhout
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 3, 2025

HI,

I was able to link my Github build to environments. Now, Jira detects a deployment. It says: Production, however, it was to a Github env called pre-production. I have seen jira reports where the environment was Testing, but I'm unable to get clear how JIRA this determines?

Where can I configure  that this specific environment is not production?

1 answer

0 votes
Matthias Gaiser _K15t_
Community Champion
July 4, 2025

Hey @Martijn Lindhout

I'm not really familiar with the Github Jira integration since I'm only using bitbucket, but according to the documentation, you should be able to provide an environment mapping file where you map the Jira and Github environments:

You can add a file called .jira/config.yml to the main branch of your repository with the following content:

deployments:
environmentMapping:
development:
- "dev*"
- "Entwicklung"
- "desenvolvimento"
- "дев"
testing:
- "testes"
- "Test"
- "TST-*"
- "тест"
staging:
- "Pre-Prod"
- "STG-*"
- "staging"
production:
- "Produktion"
- "produção"
- "продакшн"
- "PROD-*"

Hope that helps,
Matthias.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events