summaryrefslogtreecommitdiffstats
path: root/tests/scm
Commit message (Collapse)AuthorAgeFilesLines
* Auto-generated output from python-blackThanh Ha2019-09-091-1/+1
| | | | | | | | | Please review the following patch containing the code changes in the repo. This patch is a transition patch and is the auto-generated output of the python-black tool. Change-Id: I2d2de71da8a105fb62b561899ae78441ddab4032 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Add support for two new plugins, and a new version of onekendallpcdoctor2019-07-256-0/+146
| | | | | | | | | | | Added new support for the following plugins: Perforce plugin: https://wiki.jenkins.io/display/JENKINS/Perforce+Plugin InfluxDB plugin: https://wiki.jenkins.io/display/JENKINS/InfluxDB+Plugin Added support for v3.0 of the following plugin https://wiki.jenkins.io/display/JENKINS/Priority+Sorter+Plugin Change-Id: If109863a91710c08b34dee622496e551a7b3b520
* Set reference repo under clone optionsVishal Bhoj2019-04-092-0/+39
| | | | | | | | | | | When we have cloneOptions in the generated with options like tags and reference filled outside of cloneOptions, The reference is not filled in the job configuration and this option will not work as expected. reference should alwasy be listed inside CloneOptions. Change-Id: I519d3c42f1b32ab27243b0f5c592e3d41e3230bb Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
* add the "honorRefspec" option to the Git SCMLadislav Thon2019-01-312-0/+2
| | | | | | | Taken from github pull request https://github.com/openstack-infra/jenkins-job-builder/pull/64/files Change-Id: Ib051a46daa4a3e2d6add74cc9c1c3c1eb766672a
* Fix bug in Git 'skip-tag' backwards compatibilityBarak Korren2018-07-052-0/+61
| | | | | | | | | | | | | Using the (deprecated) 'skip-tag' option in Git SCM did not work as expected, despite code in place to maintain compatibility with it. This needs to work to allow smooth transition for projects from JJB 1.x to 2.x. Also added a test case to expose the issue. Change-Id: I90230f9fe97757bcc70e35b829fc887839a19e57 Signed-off-by: Barak Korren <bkorren@redhat.com>
* Normalize newlines at end of fileSorin Sbarnea2018-06-297-7/+7
| | | | | | | | Preparatory move for adopting pre-commit hooks. Shoudl only remove newlines and spaces at end of files. Change-Id: Ia33679467c533722b9308f7e7b74be395c926428 Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
* Add support for AccuRev as SCM Providertanhengyeow2018-06-182-0/+33
| | | | | | | | The AccuRev plugin is supported in this patch. Change-Id: I4a9d58367afdf06913213bdc8c0fdd8de5126d3e Story: #2001118 Task: #4809
* Add depth option to git shallow-cloneImran Malik2018-06-146-1/+8
| | | | | | - Use convert xml for shallow-clone and depth Change-Id: I92d4bd2ded6db66bb608aed480e873e29e7b9474
* Update tfs to use convert_mapping_to_xml()Yolande Amate2017-10-233-3/+3
| | | | | Change-Id: Iec3972d2f16e660759b9eeaedb26bddea2ff21a6 Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
* Merge "Add Support for a list of additional-credentials in the SVN-plugin"Jenkins2017-10-062-0/+49
|\
| * Add Support for a list of additional-credentials in the SVN-pluginJacqueline Haefke2017-10-062-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the 30.01.2017 the SVN plugin support additional-credentials, but the jenkins-job-builder can't generate this part: <additionalCredentials> <hudson.scm.SubversionSCM_-AdditionalCredentials> <realm>...</realm> <credentialsId>...</credentialsId> </hudson.scm.SubversionSCM_-AdditionalCredentials> <hudson.scm.SubversionSCM_-AdditionalCredentials> <realm>...</realm> <credentialsId>...</credentialsId> </hudson.scm.SubversionSCM_-AdditionalCredentials> </additionalCredentials> Now you have optional 'additional-credentials' parameters. Change-Id: I801cada4bd630242a216a1facc4abfc8d5378bcf Task:4884 Story:2001152
* | Update cvs to use convert_mapping_to_xml()Yolande Amate2017-08-113-8/+8
|/ | | | Change-Id: I0fb5426865f0b116491ece745442f7d2fa8d290b
* Add `do-not-fetch-tags` to CloneOption for GitBao Nguyen2017-06-114-0/+42
| | | | | | | | | | | | | | | | | In one of the recent change to Git plugin behavior[1], tags are also search as part of branches. This cause projects that build on all branches to also build on all tags. This change allowing for tags to be ignored. Default this option is false and missing from XML output. [1] https://github.com/jenkinsci/git-plugin/pull/340 [2] https://github.com/jenkinsci/git-plugin/commit/bfeda3e661531bd9baec937ec4a4944ac482692c Change-Id: I2ed2290f9ef8ecd0d9e96aad1d7cbce2964bf2da
* scm: introduce parent-credentials for git submodulesAzat Khuzhin2017-04-042-0/+2
| | | | | | | | | | | | | | | | Jenkins Git plugin does not use your configured credentials for cloning submodules, but you can told it to use credentials from parent repository, by checking "Use credentials from default remote of parent repository", and this "parent-credentials" will set that option. So without this option jenkins git plugin will not be able to clone submodules, if they are not public available. The default value is "false", like in jenkins git plugin. See-also: https://issues.jenkins-ci.org/browse/JENKINS-20941 Change-Id: I1cfb3f45bb082f538eff1a9e64a03be27f759a5f Signed-off-by: Azat Khuzhin <a3at.mail@gmail.com>
* Merge "Prevent creation of empty parameters for Repo"Jenkins2017-02-221-6/+6
|\
| * Prevent creation of empty parameters for RepoSimon Kuhnle2017-01-261-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Only manifest-url is required for the Repo plugin, all other parameters are optional, or should at least not generate empty tags, because the actual 'repo' tool will be called with empty parameters, leading to a failed execution. This was introduced with a34bd67ef74afe7a08e069710a827797073faa51. Before that change, empty strings did not generate XML entries. Change-Id: Ia66845cb71b01c8e26285ed2eabb1ef32622e3e1 Story: 2000727
* | Add Dimensions SCM supportNikolas Sepos2017-01-274-0/+78
|/ | | | Change-Id: I6a8247ef42f9fba6f619e6cbd07726c3bb704e56
* Refactor base test classes inheritance for reuseDarragh Bailey2016-09-141-7/+3
| | | | | | | | | | | Refactor base test class inheritance to allow for BaseTest class to be reused without needing to also import the TestCase class everywhere in order to avoid having the common test function executed on base classes. This makes it easier to build base testing classes and then simplifies the subclassing of these for actual tests. Change-Id: I89809e8082469f814f245db4a9ab7658aac8a405
* Merge "SCM repo: add ignore-projects option"Jenkins2016-07-192-0/+7
|\
| * SCM repo: add ignore-projects optionLucas Dutra Nunes2016-06-142-0/+7
| | | | | | | | | | Change-Id: I4468b699fa86d0790dbb01457d2e67e276740940 Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
* | Update OpenShift Pipeline pluginKien Ha2016-07-181-1/+1
| | | | | | | | | | | | | | | | - Update convert_mapping_to_xml to use fail_required=True argument - Update documentations to have default options Change-Id: Icb1435f76276ef9e7dd8a84506ca7f9cbf90a853 Signed-off-by: Kien Ha <kienha9922@gmail.com>
* | Merge "Update Git SCM so that extensions are configured correctly."Jenkins2016-06-1524-216/+132
|\ \ | |/ |/|
| * Update Git SCM so that extensions are configured correctly.Jeff Grafton2016-06-0624-216/+132
| | | | | | | | | | | | | | Many configuration options have been extensions for at least 2 years, so update the generated XML to actually configure these options. Change-Id: Ic22ca4a6b8d61c977979a5eb63a2e884dc4391bd
* | Fix Multiple SCMs Plugin child XML formatRyo Tagami2016-05-111-2/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current implementation of Multiple SCMs Plugin seems to be broken. Test with following combination of Jenkins and Multiple SCMs Plugin * Jenkins 2.2 (latest) + multiple-scms 0.6 (latest) * Jenkins 1.651.1 (latest LTS) + multiple-scms 0.6 (latest) * Jenkins 1.409.1 (oldest LTS) + multiple-scms 0.1 (oldest) * Jenkins 1.396 (oldest) + multiple-scms 0.1 (oldest) all emitted XML with following format (apart from `plugin=` here and there): ``` <scm class="org.jenkinsci.plugins.multiplescms.MultiSCM"> <scms> <hudson.scm.SubversionSCM> : </hudson.scm.SubversionSCM> <hudson.scm.CVSSCM> : </hudson.scm.CVSSCM> </scms> </scm> ``` whereas current Jenkins Job Builder implementation emits XML with following format: ``` <scm class="org.jenkinsci.plugins.multiplescms.MultiSCM"> <scms> <scm class="hudson.scm.SubversionSCM"> : </scm> <scm class="hudson.scm.CVSSCM"> : </scm> </scms> </scm> ``` This commit will fix this problem by modifying child `scm` node to a correct format before adding to the parent `scm` node. Change-Id: I0b9115c156a06a7fbdf529341dfc6100edf225aa Signed-off-by: Ryo Tagami <rtagami@airstrip.jp>
* Add support for URL scm pluginAdam Kaufman2016-04-274-0/+35
| | | | | | Allows for watching for changes in an artifact from a given url Change-Id: I4debc2c6589962497a746f951a54857c8507ea02
* Merge "add reference-repo option to scm git submodule"Jenkins2016-02-252-0/+2
|\
| * add reference-repo option to scm git submoduleChristian Rodemeyer2016-02-142-0/+2
| | | | | | | | | | | | | | | | For the Git Plugin you can specify a reference repository to speed up cloning. This is already implemented on the top level and this commit adds it to the submodule extension. Change-Id: Ic1d19d7c31ec7ecb5578a0ebad5bd936756c7582
* | Merge "SCM repo: add show-all-changes option"Jenkins2016-02-252-0/+2
|\ \
| * | SCM repo: add show-all-changes optionLucas Dutra Nunes2016-02-182-0/+2
| | | | | | | | | | | | | | | Change-Id: I6260808fe1c845aaed500712e97cd72f5b6c8fa3 Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
* | | Merge "SCM repo: add trace option"Jenkins2016-02-252-0/+2
|\| |
| * | SCM repo: add trace optionLucas Dutra Nunes2016-02-182-0/+2
| | | | | | | | | | | | | | | Change-Id: Ie347f453dd3b677c343d3682b8e1f5c87cf93c27 Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
* | | Merge "SCM repo: add no-tags option"Jenkins2016-02-252-0/+2
|\| |
| * | SCM repo: add no-tags optionLucas Dutra Nunes2016-02-182-0/+2
| | | | | | | | | | | | | | | Change-Id: I5c448776277afa4acbec71fa0a6f38286fe3401b Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
* | | Merge "SCM repo: add reset-first option"Jenkins2016-02-252-0/+2
|\| |
| * | SCM repo: add reset-first optionLucas Dutra Nunes2016-02-182-0/+2
| | | | | | | | | | | | | | | Change-Id: Iafb79bb98ac3863f996027caa9136725cc59e973 Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
* | | Merge "SCM repo: add depth option"Jenkins2016-02-251-0/+1
|\| |
| * | SCM repo: add depth optionLucas Dutra Nunes2016-02-181-0/+1
| | | | | | | | | | | | | | | Change-Id: I056ca2e6eedfb6915338e654597ae562d89a6295 Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
* | | Merge "SCM repo: add force-sync option"Jenkins2016-02-252-0/+2
|\| | | |/ |/|
| * SCM repo: add force-sync optionLucas Dutra Nunes2016-02-152-0/+2
| | | | | | | | | | Change-Id: I232d45f4066c0ac2b3cddce9ca99a9a02903813a Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
* | Updated to support changes to openshift pipeline pluginAri LiVigni2016-01-063-3/+6
| | | | | | | | | | | | | | | | | | - Documentation updated with correct links and options - New openshift-creator builder added - Two new publishers openshift-build-canceller and openshift-deploy-canceller - Added verbose option to all existing builders and scm Change-Id: I63f19bec6ea8a2344f48d59ad751a8bc5c3be9eb
* | Reorder imports to match hacking guidelinesDarragh Bailey2015-12-231-2/+5
| | | | | | | | | | | | | | Ensure that the imports follow the standard OpenStack hacking guidelines. Change-Id: Iaa4326aef118ddfd807dd006934f1d9ca80a1cfa
* | Implement bzr SCM module.Daniel Watkins2015-12-198-0/+58
|/ | | | Change-Id: Iee9c42a742b4062cb4756d16e5978905e115f13f
* Merge "Make git.timeout parameter set clone timeout too."Jenkins2015-11-122-0/+6
|\
| * Make git.timeout parameter set clone timeout too.Paul Sokolovsky2015-10-282-0/+6
| | | | | | | | | | | | | | | | | | | | | | Git plugin has few fine-grained timeout settings, with jenkins-job-builder setting only checkout timeout. Make the same timeout apply for clone operations too. Based on https://storyboard.openstack.org/#!/story/2000372 Change-Id: Id01d413bef7ffa3a069cc1000c923e1bd9ad9ff5 Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
* | Made a common helper function - convert_mapping_to_xmlAri LiVigni2015-10-091-0/+1
|/ | | | | | | | | | | | | | | | | | | This will allow other modules to convert a mapping set to xml easily with defaults so other methods don't have to create their own. Includes behaviour to selectively omit or include empty tags. Behaviour for default value: None - omit this tag if users didn't put anything "" - create an empty element if users didn't put anything This is applied to the existing openshift plugin functions in refactoring as Jenkins actually retains an empty XML tag when the optional 'auth-token' setting is missing from the input job definition. Which results in modifying the default test's output for the openshift plugin. Change-Id: I935a70ad191bc0f3f3dbd571b2b1cf7468106697
* Merge "Implements: additions for OS3 plugin entry points in builders and scm"Jenkins2015-10-084-0/+28
|\
| * Implements: additions for OS3 plugin entry points in builders and scmAri LiVigni2015-10-084-0/+28
| | | | | | | | | | | | | | | | | | Add entry points for all builder and scm entry points for the openshift3 plugin. Adds openshift-builder, openshift-build-verify, openshift-deployer, openshift-dep-verify, openshift-img-tagger, openshift-scaler, openshift-svc-verify, openshift-img-streams Change-Id: I5d08ddd7eb09241869cf56a5ffdfcce6a0671a4c
* | Capture logs with FakeLogging FixtureDarragh Bailey2015-09-301-1/+1
|/ | | | | | | Capture logs to attach them on exceptions to simplify the debugging of errors in tests when they occur. Change-Id: I5c1b5c306aba37789a8d41eabf65e0ac628af838
* Merge "Support for CVS SCM using CVS plugin"Jenkins2015-09-084-0/+153
|\
| * Support for CVS SCM using CVS pluginSomay Jain2015-08-184-0/+153
| | | | | | | | Change-Id: Ic22eeda217ab902e2bf9ca2aa5637706fdfe6943