Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline Job Get SCM Element Bug Fix #892

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions jenkinsapi/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,13 @@ def get_scm_type(self):
if scm_element:
# multibranch pipeline.
self._scm_prefix = multibranch_scm_prefix
if not scm_element:
pipeline_scm_prefix = "definition/"
_pipeline_scm_path = pipeline_scm_prefix + "scm"
scm_element = element_tree.find(_pipeline_scm_path)
if scm_element:
# standard pipeline.
self._scm_prefix = pipeline_scm_prefix
scm_class = scm_element.get("class") if scm_element else None
scm = self._scm_map.get(scm_class)
if not scm:
Expand Down
Loading