compiling jenkins in eclise

26 views
Skip to first unread message

Gilad Baruchian

unread,
Jul 24, 2015, 5:01:15 PM7/24/15
to Jenkins Developers
Hello,
I cloned the source code from github.
most of the classes compiled but i got like 50 errors.

When I look at the errors it looks like someone made code changes but didn't check-in all the changes to git.

for example, I see a call to LargeText constructor with 4 parameters when LargeText doesn't have such contractor. (the error is in AnnotatedLargeText<T> in the call to "super" from the contractor).

I tried earlier releases - i took the tag version 1.620 and it also had the same kind of issues.
Any idea how i can get a stable copy of the source code?

Kanstantsin Shautsou

unread,
Jul 26, 2015, 6:12:33 AM7/26/15
to Jenkins Developers, gila...@gmail.com
Please provide logs, telepaths on vacation. You can also always compare your build with upstream builds https://jenkins.ci.cloudbees.com/job/core/job/jenkins-core/

Gilad Baruchian

unread,
Jul 26, 2015, 9:20:17 AM7/26/15
to Jenkins Developers, kanstan...@gmail.com
How can I provide a log? i just open the code in eclipse and i have errors.  

Gilad Baruchian

unread,
Jul 26, 2015, 9:21:59 AM7/26/15
to Jenkins Developers, kanstan...@gmail.com, gila...@gmail.com
and how is it possible that the tags have errors? shouldn't they be the source code that was compiled to create the version?

Gilad Baruchian

unread,
Jul 26, 2015, 9:24:00 AM7/26/15
to Jenkins Developers, kanstan...@gmail.com
i have the code from tag 1.620 


Gilad Baruchian

unread,
Jul 26, 2015, 9:26:26 AM7/26/15
to Jenkins Developers, kanstan...@gmail.com
example 


Gilad Baruchian

unread,
Jul 26, 2015, 9:29:07 AM7/26/15
to Jenkins Developers, gila...@gmail.com
There is no such constructor, there are 2 LargeText contractors and they contain only 3 parameters 


Kanstantsin Shautsou

unread,
Jul 26, 2015, 10:14:03 AM7/26/15
to jenkin...@googlegroups.com, gila...@gmail.com
Did you fetched all dependencies?
Super come from stapler-1.237 
On Jul 26, 2015, at 16:29, Gilad Baruchian <gila...@gmail.com> wrote:

There is no such constructor, there are 2 LargeText contractors and they contain only 3 parameters 



--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/yRJGJqgxYMw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/4003b067-c044-4e4d-b031-55fcaeb5a657%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gilad Baruchian

unread,
Jul 26, 2015, 11:28:31 AM7/26/15
to Jenkins Developers, kanstan...@gmail.com
I did not fetch dependencies, i followed this guide :

 What i did is :

 git clone https://github.com/jenkinsci/jenkins.git
 cd jenkins
 mvn -Plight-test install
 mvn -DdownloadSources=true eclipse:eclipse

and imported the mvn project in eclipse.
Anything else I need to do?

James Nord

unread,
Jul 27, 2015, 7:43:56 AM7/27/15
to Jenkins Developers, kanstan...@gmail.com, gila...@gmail.com
You can't import the maven project into eclipse if you use mvn eclipse:eclipse.  
If you are importing the maven project use only m2eclipse, if using mvn eclipse:eclipse import it using the "existing project".

You probably also need to make sure you have configured your maven settings correctly - https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial#Plugintutorial-SettingUpEnvironment

/James

Personally I have had more success with eclipse - eclipse:eclipse I have historically had very poor success with.
You also need to make sure that your maven settings file is correct for working with Jenkins.
Reply all
Reply to author
Forward
0 new messages