[JIRA] (JENKINS-58366) Please add repository URL to currentBuild environment variables for declarative pipeline builds

1 view
Skip to first unread message

powerstat@web.de (JIRA)

unread,
Jul 5, 2019, 2:23:03 PM7/5/19
to jenkinsc...@googlegroups.com
Kai Hofmann created an issue
 
Jenkins / Improvement JENKINS-58366
Please add repository URL to currentBuild environment variables for declarative pipeline builds
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: pipeline
Created: 2019-07-05 18:22
Environment: Windows, Linux, MacOS, subversion, git, ....
Labels: pipeline-environment repository url git subversion
Priority: Trivial Trivial
Reporter: Kai Hofmann

 I would like to have a release stage in my Jenkinsfile that only runs when it's checked out from the original repository. This is to avoid error messages on cloned repositories, because of missing keys etc. there.
 
Please see my stackoverflow posting for more:
 
https://stackoverflow.com/questions/56899602/is-it-possible-to-check-if-checked-out-from-a-specific-repository-in-a-jenkins-d
 
As it looks from the responses this would be a feature request to have a solution that is independend of the version control system, because Jenkins itself knowns the version control system and the url. So it should be easily possible to mage the repository url availabe as currentBuild environment variable. Which will allow to have a release stage that only would be executed from the original repository.
 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages