Wait, I think the above Git output is via this code. How can I pass no-tag
fetch, shallow fetch, and timeout options to the fromGit() call?
stage('Loading Base Pipeline') {
pipeline = fileLoader.fromGit(jenkinsPipeline, gitPath, gitBranch,
gitCredentialsId, jenkinsNode)
}
On Thursday, August 16, 2018 at 10:16:26 AM UTC-4, ZillaYT wrote:
>
> Jenkins v2.107.2
>
> We are have a Jenkins Pipeline job set up this way
>
> - Pipeline script from SCM
> - SCM: Git
> - Repositories: (Set up appropriately and correctly using SSH)
> - Additional Behaviors
> - Clean before checkout
> - Advanced clone behaviours
> - Fetch tags: unchecked
> - Honor refspec on initial clone: unchecked
> - Shallow clone: checked
> - Shallow clone depth: 1
> - Path of reference repo during clone: (blank)
> - Timeout in minutes for clone and fetch operations: 30
> - Advanced checkout behaviors:
> - Timeout (in minutes) for checkout operation: 30
>
> However, it seems like NONE of the "Advance..." options are used. I get
> the following. See where it time out after 10 minutes instead of 30 as
> specified in the options? Also, I unchecked "Fetch tags" but it's still
> fetching tags? I thought this was fixed?
>
> Checking out [email protected]:project/repo.git,
> branch=dont-merge-test-build-only
> [Pipeline] checkout
> Cloning the remote Git repository
> Cloning repository [email protected]:project/repo.git
> > git init
> /home/jenkins/workspace/Utilities/test-project-build-only/libLoader #
> timeout=10
> Fetching upstream changes from [email protected]:project/repo.git
> > git --version # timeout=10
> using GIT_SSH to set credentials Bitbucket credentials
> > git fetch --tags --progress [email protected]:project/repo.git
> +refs/heads/*:refs/remotes/origin/*
> ERROR: Timeout after 10 minutes
> ERROR: Error cloning remote repo 'origin'
> hudson.plugins.git.GitException: Command "git fetch --tags --progress
> [email protected]/repo.git +refs/heads/*:refs/remotes/origin/*" returned
> status code 128:
> stdout:
> stderr: Warning: Permanently added 'bitbucket.org,xxx.xxx.xxx.xxx' (RSA) to
> the list of known hosts.
>
>
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/6d68b3dc-144b-4251-810e-19ccef7e5176%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.