Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 426182 - Migrate GMF-Tooling Sonar job to HIPP
Summary: Migrate GMF-Tooling Sonar job to HIPP
Status: RESOLVED FIXED
Alias: None
Product: GMF-Tooling
Classification: Modeling
Component: Releng (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 414773
  Show dependency tree
 
Reported: 2014-01-20 14:33 EST by Thanh Ha CLA
Modified: 2014-01-28 11:03 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thanh Ha CLA 2014-01-20 14:33:13 EST
I noticed the GMF-Tooling sonar job is still on the Hudson Sandbox [1]. Per bug 414773 we are planning on shutting down the sandbox end of March so we will need to migrate it to the GMF-Tooling HIPP if it is still necessary. Can we migrate this job over to the GMF-Tooling HIPP instance?

Webmaster can help with copying over the job.


[1] https://hudson.eclipse.org/sandbox/job/GMF-Tooling-Sonar
Comment 1 Thanh Ha CLA 2014-01-20 14:34:09 EST
Adding Mickael since he's the sandbox job owner.
Comment 2 Michael Golubev CLA 2014-01-20 14:39:41 EST
To my understanding, it requires some plugins to be installed and we missed to request installing them at the migration to HIPP.

Can you please install it and move the job?
Comment 3 Thanh Ha CLA 2014-01-20 15:21:53 EST
I migrated the job and disabled the sandbox one.

https://hudson.eclipse.org/gmf-tooling/job/GMF-Tooling-Sonar/
Comment 4 Michael Golubev CLA 2014-01-28 08:06:48 EST
I have just tried to revive this job at the HIPP. 

I see the problem with permissions as follows: (at the end of https://hudson.eclipse.org/gmf-tooling/job/GMF-Tooling-Sonar/32/console)

Can you please grant the necessary permission or advice how to fix that? 

[workspace] $ mvn -f /home/hudson/genie.modeling.gmp.gmf-tooling/.hudson/jobs/GMF-Tooling-Sonar/workspace/pom.xml -e -B sonar:sonar -Dmaven.repo.local=/home/hudson/genie.modeling.gmp.gmf-tooling/.hudson/jobs/GMF-Tooling-Sonar/workspace/.maven/repo -Dsonar.jdbc.driver=org.postgresql.Driver -Dsonar.jdbc.url=jdbc:postgresql://sonar/sonar ******** ******** -Dsonar.host.url=https://dev.eclipse.org/sonar
FATAL: command execution failed
java.io.IOException: Cannot run program "mvn" (in directory "/home/hudson/genie.modeling.gmp.gmf-tooling/.hudson/jobs/GMF-Tooling-Sonar/workspace"): error=13, Permission denied
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
	at hudson.Proc$LocalProc.<init>(Proc.java:187)
	at hudson.Proc$LocalProc.<init>(Proc.java:157)
	at hudson.Launcher$LocalLauncher.launch(Launcher.java:649)
	at hudson.Launcher$ProcStarter.start(Launcher.java:266)
	at hudson.Launcher$ProcStarter.join(Launcher.java:273)
	at hudson.tasks.Maven.perform(Maven.java:255)
	at hudson.plugins.sonar.utils.SonarMaven.executeMaven(SonarMaven.java:149)
	at hudson.plugins.sonar.SonarPublisher.executeSonar(SonarPublisher.java:331)
	at hudson.plugins.sonar.SonarPublisher.perform(SonarPublisher.java:292)
	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:51)
	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:646)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:624)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:600)
	at hudson.model.Build$RunnerImpl.post2(Build.java:163)
	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:566)
	at hudson.model.Run.run(Run.java:1414)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)
	at hudson.model.ResourceController.execute(ResourceController.java:82)
	at hudson.model.Executor.run(Executor.java:137)
Caused by: java.io.IOException: error=13, Permission denied
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
	at java.lang.ProcessImpl.start(ProcessImpl.java:130)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
	... 19 more
Sonar analysis completed: FAILURE
Sending e-mails to: mistria@redhat.com hillairet@montages.com
Finished: FAILURE
Comment 5 Mickael Istria CLA 2014-01-28 09:16:06 EST
IIRC, this happens because the Sonar plugin relies on the "Legacy" Maven 2 plugin, which is probably missing on GMF-Tooling HIPP.
Comment 6 Thanh Ha CLA 2014-01-28 09:29:43 EST
(In reply to Mickael Istria from comment #5)
> IIRC, this happens because the Sonar plugin relies on the "Legacy" Maven 2
> plugin, which is probably missing on GMF-Tooling HIPP.

Sorry I had forgot about this. The Legacy configuration is setup in the newer HIPP images but GMF-Tooling was deployed previous to that so it did not have this config.

I have setup the Maven 2 Legacy plugin now. Can you try again?
Comment 7 Michael Golubev CLA 2014-01-28 10:09:02 EST
Nope, the same problem: https://hudson.eclipse.org/gmf-tooling/job/GMF-Tooling-Sonar/33/console
Comment 8 Thanh Ha CLA 2014-01-28 10:12:30 EST
(In reply to Michael Golubev from comment #7)
> Nope, the same problem:
> https://hudson.eclipse.org/gmf-tooling/job/GMF-Tooling-Sonar/33/console

I hope you don't mind but I started a new job.


There was a setting for Sonar in the job under "Advanced" that said to inherit the Maven version from job. I decided to see if explicitly setting it to maven-3.0.5 will help.
Comment 9 Michael Golubev CLA 2014-01-28 11:03:26 EST
Thanks, it works now.