Not able to build its-jira

87 views
Skip to first unread message

Ashwini T R

unread,
Sep 19, 2016, 9:11:49 AM9/19/16
to Repo and Gerrit Discussion
Hi,

I am able to build all the plugins except its-jira. While building i am getting below error. root@mycloud:/ephemeral/build/gerrit# buck build plugins/its-jira:its-jira BUILD FAILED: Error initializing //plugins/its-jira/lib:atlassian-event from disk. [-] PROCESSING BUCK FILES...FINISHED 0.2s [100%] [-] BUILDING...FINISHED 0.1s [100%] (2/486 JOBS, 0 UPDATED, 0.0% CACHE MISS) root@mycloud:/ephemeral/build/gerrit#

Please someone help me to fix and build. We need to change the plugin name,
so building own plugins instead downloading jar from gerrit ci.

Thanks
Ashiwni

Zaro

unread,
Sep 19, 2016, 9:20:29 AM9/19/16
to Ashwini T R, Repo and Gerrit Discussion
which version are you building and are you doing in-tree or stand
alone build? Also you must checkout the same core and plugin branches
for build to work, for example its-jira stable-2.12 with gerrit
stable-2.12.
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to repo-discuss...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Rajesh M

unread,
Sep 20, 2016, 9:57:51 AM9/20/16
to Repo and Gerrit Discussion, ashu.r...@gmail.com
Hi,

We are trying to build stable 2.12 branch only. Before starting the build, we have cloned the gerrit code and checkout the same stable2.12 branch.

FYI. We are able to build its-base and other plugins, which are not having any dependencies. its-jira and few other plugins having deps in BUCK, getting error for the dependency files during build execution. Please find more details at https://bugs.chromium.org/p/gerrit/issues/detail?id=4402

We are running the builds in standalone Ubuntu machine and Ubuntu docker container too, everywhere getting the same problem. Machines are located behind the corporate proxy servers to connect network. Currently configured the proxy in .buckconfig and $home/.m2/settings files. Could you please suggest/provide any guides to overcome the BUCK deps problem, if any.

Thanks.

Rajesh M

lucamilanesio

unread,
Sep 21, 2016, 2:57:39 AM9/21/16
to Repo and Gerrit Discussion, ashu.r...@gmail.com
Its-Jira 2.12 works on the CI:

Are you sure you don't have local issues with your outbound proxies?


On Tuesday, September 20, 2016 at 2:57:51 PM UTC+1, Rajesh M wrote:
Hi,

We are trying to build stable 2.12 branch only. Before starting the build, we have cloned the gerrit code and checkout the same stable2.12 branch.

FYI. We are able to build its-base and other plugins, which are not having any dependencies. its-jira and few other plugins having deps in BUCK, getting error for the dependency files during build execution. Please find more details at https://bugs.chromium.org/p/gerrit/issues/detail?id=4402

We are running the builds in standalone Ubuntu machine and Ubuntu docker container too, everywhere getting the same problem.

The build generated by the Gerrit-CI is an Ubuntu box without nothing but Java, Buck on it. It is started "clean" without any cached data upon build.
See the build slave definition at:
 
Machines are located behind the corporate proxy servers to connect network. Currently configured the proxy in .buckconfig and $home/.m2/settings files. Could you please suggest/provide any guides to overcome the BUCK deps problem, if any.

I reckon your problem is more with your outbound proxy than in Gerrit or the its-jira plugin.
Have you tried building the whole Gerrit? Does that work?

Luca.

Rajesh M

unread,
Sep 21, 2016, 8:36:22 AM9/21/16
to Repo and Gerrit Discussion, ashu.r...@gmail.com


On Wednesday, 21 September 2016 12:27:39 UTC+5:30, lucamilanesio wrote:
Are you sure you don't have local issues with your outbound proxies?
>> Yes, there is no issues in outbound proxy. Able to connect and download internet resources.
 
On Tuesday, September 20, 2016 at 2:57:51 PM UTC+1, Rajesh M wrote:
Hi,

We are trying to build stable 2.12 branch only. Before starting the build, we have cloned the gerrit code and checkout the same stable2.12 branch.

FYI. We are able to build its-base and other plugins, which are not having any dependencies. its-jira and few other plugins having deps in BUCK, getting error for the dependency files during build execution. Please find more details at https://bugs.chromium.org/p/gerrit/issues/detail?id=4402

We are running the builds in standalone Ubuntu machine and Ubuntu docker container too, everywhere getting the same problem.

The build generated by the Gerrit-CI is an Ubuntu box without nothing but Java, Buck on it. It is started "clean" without any cached data upon build.
See the build slave definition at:

>> Sure,, we'll try this docker file in a container and check the build 

 
Machines are located behind the corporate proxy servers to connect network. Currently configured the proxy in .buckconfig and $home/.m2/settings files. Could you please suggest/provide any guides to overcome the BUCK deps problem, if any.

I reckon your problem is more with your outbound proxy than in Gerrit or the its-jira plugin.
Have you tried building the whole Gerrit? Does that work?
>> Yes, able to build gerrit. We have tested the generated war too, which is working as expected. Problem with plugins, which are having dependencies in BUCK file. 

Rajesh M

unread,
Sep 21, 2016, 9:18:18 AM9/21/16
to Repo and Gerrit Discussion, ashu.r...@gmail.com
Is the gerrit-ci-slave image from docker hub ?
I am not able to find the image on hub.docker.com. During execution getting below error due to image unavailability.
Error: image library/gerrit-ci-slave:latest not found

Thanks,
Rajesh M

David Ostrovsky

unread,
Sep 21, 2016, 9:21:00 AM9/21/16
to Repo and Gerrit Discussion, ashu.r...@gmail.com

On Tuesday, September 20, 2016 at 3:57:51 PM UTC+2, Rajesh M wrote:
Hi,

We are trying to build stable 2.12 branch only. Before starting the build, we have cloned the gerrit code and checkout the same stable2.12 branch.

FYI. We are able to build its-base and other plugins, which are not having any dependencies. its-jira and few other plugins having deps in BUCK, getting error for the dependency files during build execution. Please find more details at https://bugs.chromium.org/p/gerrit/issues/detail?id=4402

We are running the builds in standalone Ubuntu machine and Ubuntu docker container too, everywhere getting the same problem. Machines are located behind the corporate proxy servers to connect network. Currently configured the proxy in .buckconfig and $home/.m2/settings files. Could you please suggest/provide any guides to overcome the BUCK deps problem, if any.

Try:

  $ buck clean
  $ buck build --deep plugins/its-jira 

Rajesh M

unread,
Sep 21, 2016, 10:22:31 AM9/21/16
to Repo and Gerrit Discussion, ashu.r...@gmail.com
Hi David,

Yes, --deep tricked.. :)...Awesome..
Thank you very much David..

-Rajesh M

Luca Milanesio

unread,
Sep 21, 2016, 4:47:29 PM9/21/16
to David Ostrovsky, Repo and Gerrit Discussion, Ashwini T R, Rajesh M
Shall we amend the its-jira build YAML then?

Rajesh M

unread,
Jan 8, 2017, 12:59:37 AM1/8/17
to Repo and Gerrit Discussion
Yes, this is needed when cooking plugins behind enterprise proxy. Please amend this.
Reply all
Reply to author
Forward
0 new messages