Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23365

Allow SCM to work with non-AbstractProject

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      SCM historically was tied to AbstractProject/AbstractBuild. It is necessary to break that dependency and allow other kinds of Job/Run to use this API (with modest accompanying changes in SCM plugins).

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/hudson/scm/SCM.java
            http://jenkins-ci.org/commit/jenkins/9f16b223b3deaf5ca01f5e88139b695992fc8dd1
            Log:
            JENKINS-23365 Noting some nullness conditions; calcRevisionsFromBuild in particular is tricky.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/scm/SCM.java http://jenkins-ci.org/commit/jenkins/9f16b223b3deaf5ca01f5e88139b695992fc8dd1 Log: JENKINS-23365 Noting some nullness conditions; calcRevisionsFromBuild in particular is tricky.
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #3466
            JENKINS-23365 Noting some nullness conditions; calcRevisionsFromBuild in particular is tricky. (Revision 69f7b58d2d8596aab3444d40b7fb84f43cd8dc21)
            JENKINS-23365 Follow-up API fixes: introduce SCM.getKey(), and add an SCMRevisionState baseline argument to checkout. (Revision df9dc4c850374daeeda72ee37177ba1fe2bcebd6)

            Result = SUCCESS
            Jesse Glick : 69f7b58d2d8596aab3444d40b7fb84f43cd8dc21
            Files :

            • core/src/main/java/hudson/scm/SCM.java

            Jesse Glick : df9dc4c850374daeeda72ee37177ba1fe2bcebd6
            Files :

            • core/src/main/java/hudson/scm/SCM.java
            • core/src/main/java/hudson/model/AbstractProject.java
            • core/src/main/java/hudson/scm/NullSCM.java
            • core/src/main/java/hudson/model/AbstractBuild.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3466 JENKINS-23365 Noting some nullness conditions; calcRevisionsFromBuild in particular is tricky. (Revision 69f7b58d2d8596aab3444d40b7fb84f43cd8dc21) JENKINS-23365 Follow-up API fixes: introduce SCM.getKey(), and add an SCMRevisionState baseline argument to checkout. (Revision df9dc4c850374daeeda72ee37177ba1fe2bcebd6) Result = SUCCESS Jesse Glick : 69f7b58d2d8596aab3444d40b7fb84f43cd8dc21 Files : core/src/main/java/hudson/scm/SCM.java Jesse Glick : df9dc4c850374daeeda72ee37177ba1fe2bcebd6 Files : core/src/main/java/hudson/scm/SCM.java core/src/main/java/hudson/model/AbstractProject.java core/src/main/java/hudson/scm/NullSCM.java core/src/main/java/hudson/model/AbstractBuild.java
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            pom.xml
            src/main/java/hudson/plugins/mercurial/ChangeComparator.java
            src/main/java/hudson/plugins/mercurial/MercurialChangeLogParser.java
            src/main/java/hudson/plugins/mercurial/MercurialChangeSetList.java
            src/main/java/hudson/plugins/mercurial/MercurialRevisionColumn.java
            src/main/java/hudson/plugins/mercurial/MercurialSCM.java
            src/main/java/hudson/plugins/mercurial/MercurialStatus.java
            src/main/java/hudson/plugins/mercurial/MercurialTagAction.java
            src/test/java/hudson/plugins/mercurial/MercurialChangeLogParserTest.java
            src/test/java/hudson/plugins/mercurial/browser/HgBrowserSelectionTest.java
            http://jenkins-ci.org/commit/mercurial-plugin/042d0ee5e763c1c5b9f0bb9e2f9d9517febf30bd
            Log:
            Merge pull request #59 from jenkinsci/SCM-Job

            JENKINS-23365 Work in a general Job

            Compare: https://github.com/jenkinsci/mercurial-plugin/compare/09438ec87b74...042d0ee5e763

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/java/hudson/plugins/mercurial/ChangeComparator.java src/main/java/hudson/plugins/mercurial/MercurialChangeLogParser.java src/main/java/hudson/plugins/mercurial/MercurialChangeSetList.java src/main/java/hudson/plugins/mercurial/MercurialRevisionColumn.java src/main/java/hudson/plugins/mercurial/MercurialSCM.java src/main/java/hudson/plugins/mercurial/MercurialStatus.java src/main/java/hudson/plugins/mercurial/MercurialTagAction.java src/test/java/hudson/plugins/mercurial/MercurialChangeLogParserTest.java src/test/java/hudson/plugins/mercurial/browser/HgBrowserSelectionTest.java http://jenkins-ci.org/commit/mercurial-plugin/042d0ee5e763c1c5b9f0bb9e2f9d9517febf30bd Log: Merge pull request #59 from jenkinsci/SCM-Job JENKINS-23365 Work in a general Job Compare: https://github.com/jenkinsci/mercurial-plugin/compare/09438ec87b74...042d0ee5e763
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            pom.xml
            src/main/java/hudson/plugins/git/GitChangeLogParser.java
            src/main/java/hudson/plugins/git/GitChangeSet.java
            src/main/java/hudson/plugins/git/GitChangeSetList.java
            src/main/java/hudson/plugins/git/GitPublisher.java
            src/main/java/hudson/plugins/git/GitSCM.java
            src/main/java/hudson/plugins/git/GitStatus.java
            src/main/java/hudson/plugins/git/GitTagAction.java
            src/main/java/hudson/plugins/git/MultipleScmResolver.java
            src/main/java/hudson/plugins/git/extensions/GitSCMExtension.java
            src/main/java/hudson/plugins/git/extensions/impl/CleanCheckout.java
            src/main/java/hudson/plugins/git/extensions/impl/CloneOption.java
            src/main/java/hudson/plugins/git/extensions/impl/PerBuildTag.java
            src/main/java/hudson/plugins/git/extensions/impl/PreBuildMerge.java
            src/main/java/hudson/plugins/git/extensions/impl/RelativeTargetDirectory.java
            src/main/java/hudson/plugins/git/extensions/impl/ScmName.java
            src/main/java/hudson/plugins/git/extensions/impl/SparseCheckoutPaths.java
            src/main/java/hudson/plugins/git/extensions/impl/SubmoduleOption.java
            src/main/java/hudson/plugins/git/extensions/impl/WipeWorkspace.java
            src/main/java/hudson/plugins/git/util/BuildChooserContext.java
            src/main/java/hudson/plugins/git/util/GitUtils.java
            src/main/resources/hudson/plugins/git/GitChangeSetList/index.jelly
            src/main/resources/hudson/plugins/git/GitSCM/project-changes.jelly
            src/main/resources/hudson/plugins/git/GitTagAction/tagForm.jelly
            src/test/java/hudson/plugins/git/GitChangeLogParserTest.java
            src/test/java/hudson/plugins/git/GitSCMTest.java
            src/test/java/hudson/plugins/git/MultipleSCMTest.java
            src/test/java/hudson/plugins/git/TestGitRepo.java
            src/test/java/hudson/plugins/git/browser/BitbucketWebTest.java
            src/test/java/hudson/plugins/git/browser/GitWebTest.java
            src/test/java/hudson/plugins/git/browser/GithubWebTest.java
            src/test/java/hudson/plugins/git/browser/GitoriousWebTest.java
            src/test/java/hudson/plugins/git/browser/KilnGitTest.java
            src/test/java/hudson/plugins/git/browser/RedmineWebTest.java
            src/test/java/hudson/plugins/git/browser/RhodeCodeTest.java
            src/test/java/hudson/plugins/git/browser/ViewGitWebTest.java
            http://jenkins-ci.org/commit/git-plugin/d83ff375786337368723879db113d0e8def2da00
            Log:
            Merge pull request #236 from jglick/SCM-Job

            JENKINS-23365 Work in a general Job

            Compare: https://github.com/jenkinsci/git-plugin/compare/05630e8f7fca...d83ff3757863

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/java/hudson/plugins/git/GitChangeLogParser.java src/main/java/hudson/plugins/git/GitChangeSet.java src/main/java/hudson/plugins/git/GitChangeSetList.java src/main/java/hudson/plugins/git/GitPublisher.java src/main/java/hudson/plugins/git/GitSCM.java src/main/java/hudson/plugins/git/GitStatus.java src/main/java/hudson/plugins/git/GitTagAction.java src/main/java/hudson/plugins/git/MultipleScmResolver.java src/main/java/hudson/plugins/git/extensions/GitSCMExtension.java src/main/java/hudson/plugins/git/extensions/impl/CleanCheckout.java src/main/java/hudson/plugins/git/extensions/impl/CloneOption.java src/main/java/hudson/plugins/git/extensions/impl/PerBuildTag.java src/main/java/hudson/plugins/git/extensions/impl/PreBuildMerge.java src/main/java/hudson/plugins/git/extensions/impl/RelativeTargetDirectory.java src/main/java/hudson/plugins/git/extensions/impl/ScmName.java src/main/java/hudson/plugins/git/extensions/impl/SparseCheckoutPaths.java src/main/java/hudson/plugins/git/extensions/impl/SubmoduleOption.java src/main/java/hudson/plugins/git/extensions/impl/WipeWorkspace.java src/main/java/hudson/plugins/git/util/BuildChooserContext.java src/main/java/hudson/plugins/git/util/GitUtils.java src/main/resources/hudson/plugins/git/GitChangeSetList/index.jelly src/main/resources/hudson/plugins/git/GitSCM/project-changes.jelly src/main/resources/hudson/plugins/git/GitTagAction/tagForm.jelly src/test/java/hudson/plugins/git/GitChangeLogParserTest.java src/test/java/hudson/plugins/git/GitSCMTest.java src/test/java/hudson/plugins/git/MultipleSCMTest.java src/test/java/hudson/plugins/git/TestGitRepo.java src/test/java/hudson/plugins/git/browser/BitbucketWebTest.java src/test/java/hudson/plugins/git/browser/GitWebTest.java src/test/java/hudson/plugins/git/browser/GithubWebTest.java src/test/java/hudson/plugins/git/browser/GitoriousWebTest.java src/test/java/hudson/plugins/git/browser/KilnGitTest.java src/test/java/hudson/plugins/git/browser/RedmineWebTest.java src/test/java/hudson/plugins/git/browser/RhodeCodeTest.java src/test/java/hudson/plugins/git/browser/ViewGitWebTest.java http://jenkins-ci.org/commit/git-plugin/d83ff375786337368723879db113d0e8def2da00 Log: Merge pull request #236 from jglick/SCM-Job JENKINS-23365 Work in a general Job Compare: https://github.com/jenkinsci/git-plugin/compare/05630e8f7fca...d83ff3757863
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            pom.xml
            src/main/java/hudson/scm/SVNRevisionState.java
            src/main/java/hudson/scm/SubversionChangeLogBuilder.java
            src/main/java/hudson/scm/SubversionChangeLogParser.java
            src/main/java/hudson/scm/SubversionChangeLogSet.java
            src/main/java/hudson/scm/SubversionRepositoryStatus.java
            src/main/java/hudson/scm/SubversionSCM.java
            src/main/java/hudson/scm/SubversionTagAction.java
            src/main/java/hudson/scm/SvnExternalsFileManager.java
            src/test/java/hudson/scm/SubversionChangeLogParserTest.java
            src/test/java/hudson/scm/SubversionRepositoryStatusTest.java
            http://jenkins-ci.org/commit/subversion-plugin/e87e989537edc5eaabb2cd22f786f7778a24948e
            Log:
            Merge pull request #86 from jglick/SCM-Job

            JENKINS-23365 Work in a general Job

            Compare: https://github.com/jenkinsci/subversion-plugin/compare/c0f3ef41c034...e87e989537ed

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/java/hudson/scm/SVNRevisionState.java src/main/java/hudson/scm/SubversionChangeLogBuilder.java src/main/java/hudson/scm/SubversionChangeLogParser.java src/main/java/hudson/scm/SubversionChangeLogSet.java src/main/java/hudson/scm/SubversionRepositoryStatus.java src/main/java/hudson/scm/SubversionSCM.java src/main/java/hudson/scm/SubversionTagAction.java src/main/java/hudson/scm/SvnExternalsFileManager.java src/test/java/hudson/scm/SubversionChangeLogParserTest.java src/test/java/hudson/scm/SubversionRepositoryStatusTest.java http://jenkins-ci.org/commit/subversion-plugin/e87e989537edc5eaabb2cd22f786f7778a24948e Log: Merge pull request #86 from jglick/SCM-Job JENKINS-23365 Work in a general Job Compare: https://github.com/jenkinsci/subversion-plugin/compare/c0f3ef41c034...e87e989537ed

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                jglick Jesse Glick
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: