How to checkout a private repo using Carthage? - ios

I am trying to checkout a branch from our organization github repo using Carthage but it fails with error message
Cartfile
git "ssh://git#github.com:orginaztion/repo.git" "branch"
In command line
carthage checkout --use-submodules --use-ssh
Error message:
A shell task (/usr/bin/env git fetch --prune --quiet ssh://git#github.com/orginaztion/repo.git refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/* (launched in /var/root/Library/Caches/org.carthage.CarthageKit/dependencies/repo)) failed with exit code 1
Am I doing something wrong here ?

Related

How to resolve the Jenkins Freestyle project Error : Filename too Long, Unable to create

I created a Jenkins Free Style Project to run a Rest assured Serenity Test Framework with Java.
When I click on Build Button in my Jenkins Job,
I get this error.
> git config core.sparseheckout # timeout=10
> git checkout -f 22227b72dd8derfgtxc7b72dd8derfgtxc7b72dd8derfgtxc # timeout=10
FATAL: Could not checkout 22227b72dd8derfgtxc7b72dd8derfgtxc7b72dd8derfgtxc
hudson.plugins.git.GitException: Command "git checkout -f 22227b72dd8derfgtxc7b72dd8derfgtxc7b72dd8derfgtxc" returned status code 128:
stdout:
stderr: error: unable to create file src/main/resources/apiRequest//createLoa/Associdksjdksjdksjdksjdksdjjdkjdks.json: Filename too long
error: unable to create file
I know that file name is too long,
I am using SHELL option as a build step with below given parameters
export MAVEN_HOME=/opt/maven
export PATH=$PATH:$MAVEN_HOME/bin
mvn --version
mvn clean package
mvn clean install
can I add something here to resolve this error? Please suggest an alternative

While Adding Git Repository Jenkins throwing error "Failed to connect to repository : Error performing git command: git.exe ls-remote -h"

I am adding Git repository to Jenkins in Source code management it throwing error Failed to connect to repository:
Error performing git command: git.exe ls-remote -h
localhost:8080/configureTools, path to git executable C:\Program Files\Git\bin\git.exe

How to checkout a Bitbucket Git-LFS repo in Jenkins?

I have a Git LFS setup on our Bitbucket server, and can clone it on my Mac since I'm the owner.
Now I'm trying to set this up so a Jenkins job can clone the repo, and so on the SCM section I have
Repository URL: git#server.company.com:user/path/repo.git
Credentials: uernamePwCreds
It can get to the repo fine, but when it tries to checkout a Git-LFS file, it gets the following access error. See the Permission denied (publickey) error on last line.
FATAL: Could not checkout 104e35fb26dc1d3ed1689523cccb6e97829c0feb
hudson.plugins.git.GitException: Command "git checkout -f 104e35fb26dc1d3ed1689523cccb6e97829c0feb" returned status code 128:
stdout:
stderr: Downloading MarcomLite/lib/jets3t-0.6.1/cockpit-0.6.1.jar (144 KB)
Error downloading object: MarcomLite/lib/jets3t-0.6.1/cockpit-0.6.1.jar (716be41): Smudge error: Error downloading MarcomLite/lib/jets3t-0.6.1/cockpit-0.6.1.jar (716be4107b362e413dc1ae29dc88e9b79e680def2c725ecc2d73268c4ea66e75): batch request: Permission denied (publickey).: exit status 255
How do I setup the "Git-LFS-specific" level authentication?
I don't want to use a Jenkinsfile for now.
Try adding "Additional Behaviours" -> "Git LFS pull after checkout" in the Git section of the SCM configuration for your job.

Travis CI loading private submodule

At the moment I'm troubling with Travis-CI Pro and a private submodule.
This is some travis.yml code I've found, the $GIT_USER and $GIT_TOKEN envs are set in travis settings.
git:
submodules: false
before_install:
- sed -i 's/git#github.com:/https:\/\/$GIT_USER:$GIT_TOKEN#github.com\//' .gitmodules
- git submodule update --init --recursive
During the build process I get the following error:
$ sed -i 's/git#github.com:/https:\/\/$GIT_USER:$GIT_TOKEN#github.com\//' .gitmodules
0.67s$ git submodule update --init --recursive
Submodule 'ro-realm' (https://github.com/[secure]/ro-realm.git) registered for path 'ro-realm'
Cloning into '/home/travis/build/[secure]/ro-order-worker/ro-realm'...
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/[secure]/ro-realm.git/'
Thanks for your help.
I wouldn't call this a recommended solution, but how about this to fix the issue?
# Generate from github, confirm that user and token are correct
echo https://${GIT_USER}:${GIT_TOKEN}#github.com/chaconinc/DbConnector
git submodule add https://${GIT_USER}:${GIT_TOKEN}#github.com/chaconinc/DbConnector
git submodule update --init --recursive

Gitlab CI can't clone gitlab repo

Has anybody has same problem?
I connected Gitlab ci with Gitlab. When test run Gitlab CI can't clone Gitlabs repo.
Got this error:
cd /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds && git clone http://gitlab-ci-token:
<mytoken>#gitlab.xlab.si/primoz_godec/scrum_app.git project-3 && cd project-3 && git checkout
<othertoken>
Cloning into 'project-3'...
fatal: protocol error: bad line length 8188
Problem was that http clone has been disabled on Gitlab. After enabling it everything was ok.

Resources