# \[gatling jenkins plugin\] Build error

**URL:** <https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161>\
**Category:** Gatling (Open-Source)\
**Created:** [November 12, 2012, 9:45am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161 "2012-11-12T09:45:29Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [November 13, 2012, 9:16am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/21 "2012-11-13T09:16:53Z")

</div>

Hi Gregory,

I tried to reproduce (note that you have to -Dgatling.simulation, not -Dgatling.simulation **s** ) but it worked fine.  
Are you sure that you properly renamed the file AND the class name inside the file (those don’t have to be the same in scala)?

Stéphane

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 13, 2012, 9:35am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/22 "2012-11-13T09:35:13Z")

</div>

I uploaded my code :  
[https://github.com/gbougeard/gatling-tests](https://github.com/gbougeard/gatling-tests)

mvn gatling:execute -Pmobile is ok  
mvn gatling:execute -Pmy is ko

---

<div class="post-metadata">

**Author:** ![Gregory\_Coutant](https://avatars.discourse-cdn.com/v4/letter/g/8c91f0/32.png) [@Gregory\_Coutant](https://community.gatling.io/u/Gregory_Coutant)\
**Post date:** [November 13, 2012, 9:50am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/23 "2012-11-13T09:50:16Z")

</div>

Hi,

In your file MySimulation.scala the package is simulations.basic, so if you want to launch this simulation the full class name is simulations.basic.MySimulation. Be careful, class name and package in scala are not correlated to the file name and directory.

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [November 13, 2012, 9:50am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/24 "2012-11-13T09:50:21Z")

</div>

OK, found it!

This is a Zinc bug (the incremental scala compiler we’ve been using recently): it doesn’t properly refresh.  
The good news is that it has already been fixed!

You can:

- use the 1.4.0 snapshot that ships a more recent version of Zinc
- perform a clean (but you lose incremental compiling) mvn clean gatling:execute  
If that’s really a blocker, we’ll have a 1.3.5 with the new Zinc.

Cheers,

Steph

---

<div class="post-metadata">

**Author:** ![Gregory\_Coutant](https://avatars.discourse-cdn.com/v4/letter/g/8c91f0/32.png) [@Gregory\_Coutant](https://community.gatling.io/u/Gregory_Coutant)\
**Post date:** [November 13, 2012, 9:56am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/25 "2012-11-13T09:56:03Z")

</div>

Hi,

I don’t think this is a Zinc related bug. In the file MySimulation.scala the package is simulations.basic, so the full class name is simulations.basic.MySimulation not basic.MySimulation

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 13, 2012, 9:57am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/26 "2012-11-13T09:57:22Z")

</div>

Thx a lot.

I will add the clean (I usually always do it, I don’t know why I missed it this time).

Thx a lot for your support and have a good Devoxx (if it’s not ended for you)

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 13, 2012, 9:59am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/27 "2012-11-13T09:59:14Z")

</div>

Ouch, the clean does not the trick… I’m gonna try the 1.4.0-SNAPSHOT

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [November 13, 2012, 10:00am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/28 "2012-11-13T10:00:09Z")

</div>

Wonder if I messed up.  
But Grégory Coutant is right: your package is wrong!

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 13, 2012, 10:06am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/29 "2012-11-13T10:06:06Z")

</div>

Ok finally fixed!

I renamed the packages tp simulations.basic and fixed the maven profiles simulation property to simulations.basic.XXX

What is really weird is that it was working for the BasicExampleSimulation which, if I understood well, was wrong.

[Previous page](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161.md?page=1)
