I'm using gitea & jenkins & sonarqube combination now.
I need pr number of gitea for sonarqube pr comment but i don't know how to get pr number at jenkins pipeline.
I tried env variables like this.
PR_ID=env.BRANCH_NAME.replace(/^PR-/, '')
but there was no pr id...
So i checked just ${env.BRANCH_NAME} but i got just barnch name.
And i also tried env variable ${env.CHANGE_ID} but i got null. =(
(I'm using multibranch pipeline)
Is there any way to get pr number of gitea at jenkins pipeline...?