[erlang-questions] Jenkins
Michael Martin
mmartin4242@REDACTED
Fri Dec 18 22:20:07 CET 2015
Bingo! Using the https:// form did the trick.
Thanks, Adam!
On 12/18/2015 02:58 PM, Adam Cammack wrote:
> Your Makefile is telling git to use the git+ssh protocol, but Jenkins
> has already removed the credentials from the git config. I am not sure
> if this can be avoided with your git plugin by manually setting the
> credentials for the user on your server, but if those are all public
> repositories you can use the https://github.com/<user>/<project> form
> instead.
>
> --
> Adam Cammack
>
> On Fri, Dec 18, 2015 at 02:41:24PM -0600, Michael Martin wrote:
>> Hi Felix,
>>
>> I'm trying to get lager from basho's repository.
>> My Makefile:
>>
>> PROJECT = nebula2
>>
>> DEPS = lager meck crc16 jsx uuid riakc cowboy pooler mcd
>> dep_lager = git git@REDACTED:basho/lager.git 2.1.1
>> dep_meck = git git@REDACTED:eproxus/meck.git 0.8.2
>> dep_crc16 = git git@REDACTED:building39/crc16_nif.git 1.1
>> dep_jsx = git git@REDACTED:talentdeficit/jsx.git master
>> dep_uuid = git git://github.com/avtobiff/erlang-uuid.git v0.4.7
>> dep_riakc = git git@REDACTED:basho/riak-erlang-client.git master
>> dep_cowboy = git git@REDACTED:ninenines/cowboy.git 1.0.3
>> dep_pooler = git git@REDACTED:seth/pooler.git master
>> dep_mcd = git git@REDACTED:building39/mcd.git master
>> include erlang.mk
>>
>> # Turn on lager
>> ERLC_COMPILE_OPTS= +'{parse_transform, lager_transform}'
>>
>> ERLC_OPTS += $(ERLC_COMPILE_OPTS)
>> TEST_ERLC_OPTS += $(ERLC_COMPILE_OPTS)
>>
>>
>>
>> On 12/18/2015 02:38 PM, Felix Gallo wrote:
>>> Do you have the lager dependency set to point to the canonical lager
>>> distribution, or perhaps a fork that your jenkins instance's github
>>> credentials don't have access to?
>>>
>>> F.
>>>
>>> On Fri, Dec 18, 2015 at 12:35 PM, Michael Martin <mmartin4242@REDACTED
>>> <mailto:mmartin4242@REDACTED>> wrote:
>>>
>>> Hi all,
>>>
>>> I'm trying to set up a Jenkins CI server on which to build my
>>> project. I'm brand new to Jenkins (as an administrator -
>>> I've been around Jenkins and Hudson before it for some years), and
>>> am having some difficulty with github. Hopefully
>>> someone here has been through this before and has an answer.
>>>
>>> I'm building the project with emake. When I kick off a build
>>> (script that runs "make clean && make"), my repository
>>> is cloned just fine, but the dependencies don't - github kicks me
>>> off every time. Here's the job log:
>>>
>>> Building in workspace /var/lib/jenkins/jobs/Nebula/workspace
>>> > git rev-parse --is-inside-work-tree # timeout=10
>>> Fetching changes from the remote Git repository
>>> > git config
>>> remote.origin.urlhttp://github.com/building39/nebula2.git
>>> <http://github.com/building39/nebula2.git> # timeout=10
>>> Fetching upstream changes
>>> fromhttp://github.com/building39/nebula2.git
>>> <http://github.com/building39/nebula2.git>
>>> > git --version # timeout=10
>>> using GIT_SSH to set credentials
>>> using .gitcredentials to set credentials
>>> > git config --local credential.username building39 # timeout=10
>>> > git config --local credential.helper store
>>> --file=/tmp/git8309391135389932287.credentials # timeout=10
>>> > git -c core.askpass=true fetch --tags
>>> --progresshttp://github.com/building39/nebula2.git
>>> <http://github.com/building39/nebula2.git>
>>> +refs/heads/*:refs/remotes/origin/*
>>> > git config --local --remove-section credential # timeout=10
>>> > git rev-parse refs/remotes/origin/develop^{commit} # timeout=10
>>> > git rev-parse refs/remotes/origin/origin/develop^{commit} #
>>> timeout=10
>>> Checking out Revision f03e718ab443c4065cd7e93c74e5b04ae274329e
>>> (refs/remotes/origin/develop)
>>> > git config core.sparsecheckout # timeout=10
>>> > git checkout -f f03e718ab443c4065cd7e93c74e5b04ae274329e
>>> > git rev-list f03e718ab443c4065cd7e93c74e5b04ae274329e # timeout=10
>>> [workspace] $ /bin/sh -xe /tmp/hudson3671066196778207128.sh
>>> + make clean
>>> GEN clean-app
>>> + make
>>> Cloning into '/var/lib/jenkins/jobs/Nebula/workspace/deps/lager'...
>>> Permission denied (publickey).
>>> fatal: Could not read from remote repository.
>>>
>>> Please make sure you have the correct access rights
>>> and the repository exists.
>>> /bin/sh: 1: cd: can't cd to
>>> /var/lib/jenkins/jobs/Nebula/workspace/deps/lager
>>> make: *** [/var/lib/jenkins/jobs/Nebula/workspace/deps/lager] Error 2
>>> Build step 'Execute shell' marked build as failure
>>> Finished: FAILURE
>>>
>>> Any ideas how to fix the Jenkins job configuration so that it can
>>> successfully clone the dependencies?
>>>
>>> Thanks,
>>> Michael
>>>
>>>
>>>
>>> _______________________________________________
>>> erlang-questions mailing list
>>> erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>
>>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list