jenkins-job-builder/tests/wrappers
Vsevolod Fedorov e2cf69b4f4 Fix support for obsolete format of pre-scm-buildstep
'pre-scm-buildstep' wrapper has two modes:
1. Older: no 'buildsteps' element is specified. Build steps is a list under
   wrapper name. For example:

    - pre-scm-buildstep:
      - shell: echo hello
      - shell: echo bye

2. Newer: build steps specified inside 'buildsteps' mapping element:

    - pre-scm-buildsteps:
        buildsteps:
        - shell: echo hello
        - shell: echo bye

But, when 'preSCMbuildstep' plugin version is equal or higher 0.3, and first
mode is used, it fails.

Fix that.

Change-Id: I010d9f6c5e06ccd8c2723026aae2c60f79917ff4
2023-12-19 12:10:43 +03:00
..
fixtures Fix support for obsolete format of pre-scm-buildstep 2023-12-19 12:10:43 +03:00
__init__.py update doc and add new JJB unit tests 2013-11-22 17:51:17 +00:00
test_wrappers.py Move tests to pytest 2022-12-20 10:44:43 +03:00