Commit Graph

175 Commits

Author SHA1 Message Date
Zuul 5aeecef649 Merge "Update documentation links" 2023-11-23 10:19:08 +00:00
Vsevolod Fedorov a1d4f91d1a Add context for macro calls
Change-Id: I674b153770297c3a0abbfcee26d840e0f2be490b
2023-11-22 12:58:37 +03:00
Vsevolod Fedorov 53bdf1ee7a Update documentation links
Apply URL redirections reported by tox docs-linkcheck output.

Change-Id: Id2f400414068c26d3103ca8fa564b7e9827f9f79
2023-11-09 12:24:34 +03:00
sp-ricard-valverde f0aeddf53a
fix(scm): add clean options to after and before
git-scm clean after and before extensions take an optional parameter to
remove untracked nested git repositories

Added support to specify such options while maintaining the previous
specification for after and before clean extensions, although a
deprecation message will be shown

Signed-off-by: sp-ricard-valverde <ricard.valverde@socialpoint.es>
Change-Id: I0ff101bbc68fc81f390b27fe5690f8821fdea1d0
2022-11-24 19:34:55 +01:00
Eric Ball 930dd24dd2
Fix: Update sphinx version pin, fix warnings
Sphinx was pinned to >1.5.0 <=1.7.0 4 years ago. It is now on v4.4.0,
and we're seeing an incompatibility with the latest version of jinja2.

Along with updating the Sphinx version, this also includes fixes for
several warnings generated in the latest version:
  * Outdated docs due to the removal of the "parser" param from
    Base.get_xml
  * Class lookup issues
  * External links for which we have extlinks defined
  * Deprated PyModulelevel is replaced by PyFunction
  * sphinx.ext.autodoc.Documenter.get_doc signature changed

Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Change-Id: Iba65fb724f098f3e4a0b20f2a183cb2ea3c450ea
2022-03-31 15:44:40 -07:00
Eric Ball a833d1fde6
Feat: Add GitHub Organization job type
This adds a job type "githuborg", which creates multibranch pipelines
for all repos in the org that contain the specified Jenkinsfile.

Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Change-Id: I148e2300f3b1ee148b51d25a2a805ed0b5a97862
2021-07-09 16:46:11 -07:00
Zuul 760d255a54 Merge "Add git submodule threads" 2021-04-10 13:47:25 +00:00
Pawel Piatek b8f0e75d34 Add git submodule threads
Signed-off-by: Pawel Piatek <xj@wp.pl>
Change-Id: I3dbc0e710460a5f55d4146cb1dd70e1ac3560e68
2021-03-18 12:39:34 +01:00
sp-ricard-valverde c1d8a41666 feat(scm): add git extension for lfs-pull
Add a missing extension to git scm which enables the option to do
"Git LFS pull after checkout"

Add lfs-pull fixtures

Change-Id: Ie8b98877f3f282ac0b32dbeb089e6d0d9ccc25c8
2021-03-16 18:29:56 +01:00
Igor Lakhtenkov 05149cf329 Added SparseCheckout trait to the git extentions
Change-Id: I01e01cf1f6c07220de7f05ae67ffee6a924f5d08
Task: #41625
2021-01-20 20:42:22 +03:00
Thanh Ha 09613c84f7
Remove broken plugin.jenkins.io links
Some deprecated plugins appear to have been removed from the Jenkins
plugin page, remove broken links but link to their GitHub pages for
history.

Change-Id: I59e41b5c783fa49d86cac87721969d79cab17f5c
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
2020-11-13 09:52:02 -05:00
Thanh Ha 1db5898624
Remove link to ViewGit website
The domain for viewgit is no longer available and appears to be
shutdown. Remove the link so that linkcheck does not fail.

Change-Id: I6e91fc2c5f4e42a7f3e08bc78b1458b0f59379dc
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
2020-09-25 10:00:51 -04:00
Zuul 35457bfd1c Merge "feat: support the skip-notifications-trait plugin for git repos" 2020-09-25 07:45:27 +00:00
Giel van Schijndel c1e3807ac7 feat: support the skip-notifications-trait plugin for git repos
Change-Id: If466d36671a8d87e0543d625f5b4e5302111874d
2020-09-16 18:53:18 +02:00
Giel van Schijndel eec4770574 feat: add support for specifying the git user's identity
This gives control over who's identity gets used for newly created
commits.

Change-Id: I8ceaabdaafa2be9c4abcfea8a2afb847d01ed0e6
2020-09-16 18:48:22 +02:00
Adam Romanek 8625fe2a97 Pipelines: stop producing unsupported and deprecated XML tags
The changes include:
- <concurrentBuild> should now be represented as
  <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/>
  property
- <triggers> should now be localed inside
  <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty>
  property, in <properties> section
- unsupported XML elements got removed:
  - <blockBuildWhenDownstreamBuilding>
  - <blockBuildWhenUpstreamBuilding>
  - <assignedNode>
  - <canRoam>
  - <customWorkspace>
- got rid of publishers from project_pipeline_template005.{xml,yaml} as
  these are not supported in Pipeline jobs

The above changes align the produced XMLs with the ones from Jenkins 2.190.1
and Pipeline plugin v2.6.

Task: 39836
Story: 2007708

Change-Id: I650ef2ee60e872cce8f93de5f391933d68ec81f0
2020-05-25 13:59:13 +02:00
Thanh Ha 29b8795753
Update Jenkins wiki -> plugins URLs
The Jenkins Wiki page is deprecated and Jenkins community is expected
to migrate their documentation to plugins.jenkins.io URL. This patch
updates all plugins that have a relevant plugins.jenkins.io URL
documentation link.

Change-Id: Iba7df7eada7b8ca0bb9aad93f5499ac6365a9293
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
2020-01-22 19:47:02 -05:00
Thanh Ha 197226c538
Fix links causing redirects
Some links have been permanently redirected to a new URL so
adjust the links to go directly to the new URL.

Change-Id: I900091f8bdc39aa5fd06eae04a9b18ef23add8f2
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
2020-01-22 18:23:25 -05:00
Thanh Ha 7b00932d2c
Enable docs-linkcheck
This toxenv will allow us to flag URLs that no longer work. We
also switch from using old style setup.py build_sphinx to the
newer sphinx-build command.

Change-Id: I62f42918814fb6eea4876e0d22c6bccddf86a826
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
2020-01-06 09:50:13 -05:00
Thanh Ha 4d90c187a9 Auto-generated output from python-black
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>
2019-09-09 19:23:24 +01:00
kendallpcdoctor 5117d87e8c Add support for two new plugins, and a new version of one
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
2019-07-25 13:12:49 -07:00
Vishal Bhoj e6398cf373
Set reference repo under clone options
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>
2019-04-09 16:18:51 +08:00
Ladislav Thon a2ad875fd7 add the "honorRefspec" option to the Git SCM
Taken from github pull request
https://github.com/openstack-infra/jenkins-job-builder/pull/64/files

Change-Id: Ib051a46daa4a3e2d6add74cc9c1c3c1eb766672a
2019-01-31 17:08:34 +00:00
Sorin Sbarnea 539d13e816 Fix flake8 failures and make its execution more consistent
- upgrade flake8 to 3.6.0
- remove use of hacking since pre-commit replaced it
- mentioned minimal flake8 version on pre-commit config
- fixed newer linting errors
- disable W504 as it seems not possible to fix (conflict with W403)
- replaced buggy tox deps installation with native pip install, which
  address the issue of missing to install new deps when the reqs files
  are updated, developer being forced to to recreate the virtualenv.
- prepare for migration from tox-pep8 to tox-linters, now these being
  just aliases.

Change-Id: I310578dce215aaf00a5b2d54716f90da9a1ecb4d
Depends-On: https://review.openstack.org/#/c/613726/
2018-10-28 11:44:43 +00:00
Zuul 494f5d3cc2 Merge "Extend multibranch pipeline project scm" 2018-09-20 14:47:59 +00:00
trane9991 92f18515b4 Extend multibranch pipeline project scm
Add suport of available extensions from default git scm
Story #2003620
Task #25743
Change-Id: I62f8018fb49d239ab634b502e51005a1465a81d9
2018-09-12 19:37:25 +03:00
tanhengyeow 1c3efc130f cvs: Fix indentation
Change-Id: I4f3c30678d8b9907f059f0f288de8bfb415f7338
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
2018-09-07 22:25:01 +08:00
Thanh Ha bdb4509b06 [scm] Update helpers import to common style
Also update some formatting for mappings.

Change-Id: I02460de312b66cbd746f4423f15a31ed5d47f56b
Signed-off-by: Thanh Ha <zxiiro@linux.com>
2018-07-24 21:15:08 +08:00
Barak Korren 11941c87f4 Fix bug in Git 'skip-tag' backwards compatibility
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>
2018-07-05 10:33:33 +03:00
tanhengyeow 84ce3b4f56 Add support for AccuRev as SCM Provider
The AccuRev plugin is supported in this patch.

Change-Id: I4a9d58367afdf06913213bdc8c0fdd8de5126d3e
Story: #2001118
Task: #4809
2018-06-18 21:08:03 +08:00
tanhengyeow 6ce4cea48b Fix indent of git for scm
Start new key value pairs at 4 indents on the next line.
Added a comma to last key value pair to facilitate future line additions.

Change-Id: I0f90e6afd25331d38771e3bc9cc4f44c07b33e6c
2018-06-17 19:43:24 +08:00
Zuul 19e3c86074 Merge "Add depth option to git shallow-clone" 2018-06-15 03:45:15 +00:00
Imran Malik 4167cc5dbd Add depth option to git shallow-clone
- Use convert xml for shallow-clone and depth

Change-Id: I92d4bd2ded6db66bb608aed480e873e29e7b9474
2018-06-14 22:07:35 -04:00
Kien Ha d076f0f1cc Correct doc for deprecation version of git skip-tag
Deprecation version in docs was incorrect. Deprecation of skip-tag
happened at 2.0.0 and onward in favour of per-build-tag extension.

Story: #2000907

Change-Id: Ibf9b43beaf7a23c18a62f57270c9f46bc4727d5c
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2018-06-11 11:10:08 -04:00
Alphadose 558220187c Handle generateParcelBuilderInputFile flag correctly
Change-Id: Id1da0647d4291e672ccad7a3abcb7fcdc47a7b54
Story: #2002156
Task: #20003
2018-06-08 00:10:25 +05:30
Andrew Mellen 9d540666b2 Added code for lightweight-checkout
Implements: lightweight-checkout for pipeline projects
Closes-Story: #2001717
Change-Id: I9bd63fba9a8f199e6b8c467c072d9804a44ec45d
2018-03-22 09:00:50 -04:00
Joost van der Griendt efc5fbe0fd Add multibranch project-type
This work was based on original work done by
Joshua Harlow on top of older code from:
https://github.com/abnamrocoesd/jenkins-job-builder/

Credit is due to `Joost van der Griendt` for doing this
work. This builds on his work in that repo, and adjusts it
so that it can get merged into upstream and released
as a fully supported job type.

SCM implementation is different than than normal SCM module,
supporting: BitBucket, git, and GitHub in this initial
patch.

Change-Id: If50a54d282dd7d901c16edb9fe04874bdd83c9ef
Co-Authored-By: Joshua Harlow <jxharlow@godaddy.com>
Co-Authored-By: Sorin Sbarnea <ssbarnea@redhat.com>
Co-Authored-By: Thanh Ha <zxiiro@linux.com>
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Signed-off-by: Thanh Ha <zxiiro@linux.com>
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-03-15 16:51:32 +00:00
Yolande Amate 67b5dc909d Update svn to make use of convert_mapping_to_xml()
Change-Id: Icd8397674b803a86065c50e71aaa9cd42791f970
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-02-27 17:47:48 +00:00
Sorin Sbarnea d8ace6802d docs: sphinx upgrade and warnings as erros
Change-Id: I455ac0d79cca3883d3a758a2709c8c0255f4cc7d
2018-01-26 23:57:53 +00:00
Yolande Amate 4ee8581e38
Update tfs to use convert_mapping_to_xml()
Change-Id: Iec3972d2f16e660759b9eeaedb26bddea2ff21a6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-10-23 14:25:31 -04:00
Jenkins bfa1ae56eb Merge "Add Support for a list of additional-credentials in the SVN-plugin" 2017-10-06 15:07:50 +00:00
Jacqueline Haefke 88e4dfdc2c Add Support for a list of additional-credentials in the SVN-plugin
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
2017-10-06 10:08:32 +02:00
Yolande Amate 5541b319bc Update cvs to use convert_mapping_to_xml()
Change-Id: I0fb5426865f0b116491ece745442f7d2fa8d290b
2017-08-11 22:31:13 +01:00
Jenkins 2c60aff806 Merge "Update url to make use of convert_mapping_to_xml()" 2017-08-03 14:58:49 +00:00
Jenkins 0077badebb Merge "Update hg to use convert_mapping_to_xml()" 2017-07-26 17:03:13 +00:00
Jenkins 066107efff Merge "Update bzr to make use of convert_mapping_to_xml()" 2017-07-24 13:19:36 +00:00
Jenkins b3e9c43e41 Merge "Update workspace to make use of convert_mapping_to_xml()" 2017-07-24 13:19:30 +00:00
Yolande Amate 9dda0d05e8 Update hg to use convert_mapping_to_xml()
Change-Id: I8a8022a087e97d7cf0dbadcd8299d1788b7963b1
2017-07-16 14:13:50 +01:00
Yolande Amate f9344b84c7 Update store to make use of convert_mapping_to_xml()
Change-Id: I83d7514660174dbaefcacacacaf3c403facca72b
2017-07-05 19:46:17 +01:00
Yolande Amate 214dcffcb7 Update bzr to make use of convert_mapping_to_xml()
Change-Id: I9c947bcd2de951240a39c3a7eacb8ee7a19165fc
2017-07-03 03:26:58 +01:00