[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title Jakub Bochenski commented on JENKINS-39977 Re: Support for bitbucket-branch-source-plugin For reference it's in the api viewer at plugin/job-dsl/api-viewer/index.html#path/javaposse.jobdsl.dsl.jobs.OrganizationFolderJob.organizations-bitbucket Add Comment This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176601.1479914431000.3685.158520245%40Atlassian.JIRA.
[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title Jakub Bochenski commented on JENKINS-39977 Re: Support for bitbucket-branch-source-plugin So where can I find a list of traits? Add Comment This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.176601.1479914431000.3671.1585666500400%40Atlassian.JIRA.
[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title SCM/JIRA link daemon commented on JENKINS-39977 Re: Support for bitbucket-branch-source-plugin Code changed in jenkins User: Mike Kobit Path: job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/DslFactory/organizationFolder.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/ComputedFolder.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/DslFactory.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/JobParent.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/workflow/ScmNavigatorsContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/jobs/MultibranchWorkflowJob.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/jobs/OrganizationFolderJob.groovy job-dsl-core/src/main/resources/javaposse/jobdsl/dsl/jobs/OrganizationFolderJob-template.xml job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/JobParentSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/workflow/ScmNavigatorsContextSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/jobs/OrganizationFolderJobSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/201d9f3159ebc686f5831f095e198e131c8b57e9 Log: JENKINS-39977: Add support for Organization Folder items and GitHub and Bitbucket SCM navigators GitHub Branch source support Bitbucket Branch source support Left out of this iteration: Folder icon Pipeline libraries Health metrics. There is only 1 available metric implementation now that is not very useful to the organization folder item type. Git SCM navigator Add Comment This message was sent by Atlassian JIRA
[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title SCM/JIRA link daemon commented on JENKINS-39977 Re: Support for bitbucket-branch-source-plugin Code changed in jenkins User: Daniel Spilker Path: docs/Home.md job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/DslFactory/organizationFolder.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/ComputedFolder.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/DslFactory.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/JobParent.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/workflow/ScmNavigatorsContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/jobs/MultibranchWorkflowJob.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/jobs/OrganizationFolderJob.groovy job-dsl-core/src/main/resources/javaposse/jobdsl/dsl/jobs/OrganizationFolderJob-template.xml job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/JobParentSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/workflow/ScmNavigatorsContextSpec.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/jobs/OrganizationFolderJobSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/9fdd8567f838e739b86a9ad0eeb8bcfb2b40e709 Log: Merge branch 'JENKINS-39977' Compare: https://github.com/jenkinsci/job-dsl-plugin/compare/3c059354f364...9fdd8567f838 Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit
[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title Daniel Spilker closed an issue as Fixed Jenkins / JENKINS-39977 Support for bitbucket-branch-source-plugin Change By: Daniel Spilker Status: Resolved Closed Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title Daniel Spilker resolved as Fixed The Bitbucket Branch Source Plugin is supported through the Automatically Generated DSL: multibranchPipelineJob(String name) { branchSources { branchSource { source { bitbucketSCMSource { id(String value) repoOwner(String value) repository(String value) autoRegisterHook(boolean value) // Left blank to use Bitbucket Cloud. bitbucketServerUrl(String value) checkoutCredentialsId(String value) credentialsId(String value) excludes(String value) includes(String value) // Left blank to use Bitbucket Cloud. sshPort(int value) } } } } } Jenkins / JENKINS-39977 Support for bitbucket-branch-source-plugin Change By: Daniel Spilker Status: Open Resolved Resolution: Fixed Add Comment
[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title Mike Kobit commented on JENKINS-39977 Re: Support for bitbucket-branch-source-plugin Was not planning on it as part of this iteration Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title Torben Knerr commented on JENKINS-39977 Re: Support for bitbucket-branch-source-plugin Mike Kobit thanks taking this on! I was also confused as I was simply using the "Bitbucket Branch Source" in a standard "WorkflowMultiBranchProject". It was only later that I realized there is also the "Teams" configuration via the "OrganizationFolder". Here is how I configured it for a Multibranch Pipeline for now: multibranchPipelineJob("somePipeline") { configure { it / sources / data / 'jenkins.branch.BranchSource' / source(class: 'com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource') { credentialsId('bitbucketUserPasswordAPICredentialsForCheckingBranches') checkoutCredentialsId('bitbucketCredentialsForCloningAndPulling') repoOwner("KEY") repository("my-repo") includes('master release/* feature/*') excludes() bitbucketServerUrl('https://my.bitbucket.com') sshPort('7999') } } // check every minute for scm changes as well as new / deleted branches triggers { periodic(1) } } Do you plan to add DSL support for this as well? Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to
[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title Mike Kobit edited a comment on JENKINS-39977 Re: Support for bitbucket-branch-source-plugin [~daspilker] - I've started trying to tackle this based on what I have seen in the UI and how some of the other code looks. I'm hoping to open a PR in the next couple days as I get some time to write it up.h3. Proposed DSLHow do you feel about this sort of DSL:{code:none}organizationFolderJob('orgFolder') { description('This contains branch source jobs for Bitbucket and GitHub') displayName('Organization Folder') branchAutoTriggerPattern('master|develop|feature/*') triggers {periodicIfNotOtherwiseTriggered(TWELVE_HOURS) } orphanedItemStrategy {discardOldItems { daysToKeep(1) numToKeep(10)} } organizations {bitbucket { repoOwner('KEY') scanCredentialsId('bitbucketScanCredentials') repositoryPattern('*') autoRegisterWebhooks() checkoutCredentialsId('bitbucketSshCheckoutCredentials') bitbucketServerUrl('https://bitbucket.corp.com') sshPort(7990)} }}{code}h3. Out-of-scope* Pipeline libraries configuration * (possibly) GitHub SCM Navigator configuration Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title Mike Kobit commented on JENKINS-39977 Re: Support for bitbucket-branch-source-plugin Daniel Spilker - I've started trying to tackle this based on what I have seen in the UI and how some of the other code looks. I'm hoping to open a PR in the next couple days as I get some time to write it up. Proposed DSL How do you feel about this sort of DSL: organizationFolderJob('orgFolder') { description('This contains branch source jobs for Bitbucket and GitHub') displayName('Organization Folder') branchAutoTriggerPattern('master|develop|feature/*') triggers { periodicIfNotOtherwiseTriggered(TWELVE_HOURS) } orphanedItemStrategy { discardOldItems { daysToKeep(1) numToKeep(10) } } organizations { bitbucket { repoOwner('KEY') scanCredentialsId('bitbucketScanCredentials') repositoryPattern('*') autoRegisterWebhooks() checkoutCredentialsId('bitbucketSshCheckoutCredentials') bitbucketServerUrl('https://bitbucket.corp.com') sshPort(7990) } } } Out-of-scope Pipeline libraries configuration Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You
[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title Mike Kobit commented on JENKINS-39977 Re: Support for bitbucket-branch-source-plugin Ok, I just realized my confusion. One of the job types is an OrganizationFolder, the other is a WorkflowMultiBranchProject. I was looking to add in support for the OrganizationFolder type Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title Mike Kobit commented on JENKINS-39977 Re: Support for bitbucket-branch-source-plugin Actually, just ran into https://github.com/jenkinsci/job-dsl-plugin/blob/master/job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/workflow/BranchSourcesContext.groovy which looks like the right place to put this. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title Mike Kobit commented on JENKINS-39977 Re: Support for bitbucket-branch-source-plugin I'm interested in taking this on. Taking a look at the no changes XML it looks like they are not the job type but part of an OrganizationFolder: .* All false false true 0 0 H H * * * 8640 bitbuck SAME .* false -1 Any suggestions on what you think the best user experience would be here for a user defining a Bitbucket Branch Source folder? Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-39977) Support for bitbucket-branch-source-plugin
Title: Message Title Torben Knerr created an issue Jenkins / JENKINS-39977 Support for bitbucket-branch-source-plugin Issue Type: Improvement Assignee: Daniel Spilker Components: job-dsl-plugin Created: 2016/Nov/23 3:20 PM Environment: Jenkins v2, bitbucket-branch-source-plugin v1.8 Priority: Minor Reporter: Torben Knerr It would be nice to have a DSL for the bitbucket-branch-source-plugin See here: https://github.com/jenkinsci/bitbucket-branch-source-plugin Add Comment