Class GitResourceService

    • Constructor Detail

      • GitResourceService

        public GitResourceService()
    • Method Detail

      • fetchPom

        public java.lang.String fetchPom​(Site site,
                                         java.lang.String strGitLogin,
                                         java.lang.String strGitPwd)
        Fetch the pom.xml content from a repository
        Specified by:
        fetchPom in interface IVCSResourceService
        Parameters:
        site - the site
        strGitLogin - the str git login
        strGitPwd - the str git pwd
        Returns:
        The POM content
      • getLastRelease

        public java.lang.String getLastRelease​(Site site,
                                               java.lang.String strGitLogin,
                                               java.lang.String strGitPwd)
        Gets the last release found in the SVN repository.
        Specified by:
        getLastRelease in interface IVCSResourceService
        Parameters:
        site - the site
        strGitLogin - the str git login
        strGitPwd - the str git pwd
        Returns:
        The version if found otherwise null
      • doCheckoutRepository

        public java.lang.String doCheckoutRepository​(WorkflowReleaseContext context,
                                                     java.lang.String strLogin,
                                                     java.lang.String strPassword)
        Do checkout repository.
        Specified by:
        doCheckoutRepository in interface IVCSResourceService
        Parameters:
        context - the context
        strLogin - the str login
        strPassword - the str password
        Returns:
        the string
      • updateDevelopBranch

        public void updateDevelopBranch​(WorkflowReleaseContext context,
                                        java.util.Locale locale,
                                        java.lang.String strMessage)
        Update develop branch.
        Specified by:
        updateDevelopBranch in interface IVCSResourceService
        Parameters:
        context - the context
        locale - the locale
        strMessage - the str message
      • updateBranch

        public void updateBranch​(WorkflowReleaseContext context,
                                 java.lang.String strBranch,
                                 java.util.Locale locale,
                                 java.lang.String strMessage)
        Update branch.
        Specified by:
        updateBranch in interface IVCSResourceService
        Parameters:
        context - the context
        locale - the locale
        strMessage - the str message