# Build and deploy Sonarqube 6.7 from its GitHub source code

**URL:** <https://community.sonarsource.com/t/build-and-deploy-sonarqube-6-7-from-its-github-source-code/5515>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [January 3, 2019, 10:22am UTC](https://community.sonarsource.com/t/build-and-deploy-sonarqube-6-7-from-its-github-source-code/5515 "2019-01-03T10:22:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![binaypaul](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@binaypaul](https://community.sonarsource.com/u/binaypaul)\
**Post date:** [January 3, 2019, 10:22am UTC](https://community.sonarsource.com/t/build-and-deploy-sonarqube-6-7-from-its-github-source-code/5515/1 "2019-01-03T10:22:30Z")

</div>

Hi Team/Folks,  
I am very new to Sonarqube and I need to use Sonarqube 6.7 (I am aware that there are later versions to 6.7).  
I am trying to build Sonarqube 6.7 from its source code (**Source code (tar.gz)**) available on GitHub [https://github.com/SonarSource/sonarqube/releases/tag/6.7](https://github.com/SonarSource/sonarqube/releases/tag/6.7)  
I have tried to follow the steps mentioned in [https://github.com/SonarSource/sonarqube](https://github.com/SonarSource/sonarqube) but this didn’t help much as there’s no “gradlew” file.  
Please help me with the steps to follow.  
Thanks,  
Binay.

---

<div class="post-metadata">

**Author:** ![dmeneses](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dmeneses/32/2933_2.png) [@dmeneses](https://community.sonarsource.com/u/dmeneses)\
**Post date:** [January 3, 2019, 10:54am UTC](https://community.sonarsource.com/t/build-and-deploy-sonarqube-6-7-from-its-github-source-code/5515/2 "2019-01-03T10:54:35Z")

</div>

Hi Binay,

SonarQube 6.7 is the current Long Term Support version and can be downloaded here: [https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-6.7.6.zip](https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-6.7.6.zip)

---

<div class="post-metadata">

**Author:** ![binaypaul](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@binaypaul](https://community.sonarsource.com/u/binaypaul)\
**Post date:** [January 3, 2019, 11:09am UTC](https://community.sonarsource.com/t/build-and-deploy-sonarqube-6-7-from-its-github-source-code/5515/3 "2019-01-03T11:09:18Z")

</div>

Hi Duarte,

Thanks a lot.  
As I needed version 6.7, I downloaded that from [https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-6.7.zip](https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-6.7.zip)  
But I couldn’t find any of the **.java** files or source codes. Please help.  
I will also highly appreciate if you let me know the steps to build and deploy Sonarqube-6.7.

Thanks,  
Binay.

---

<div class="post-metadata">

**Author:** ![dmeneses](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dmeneses/32/2933_2.png) [@dmeneses](https://community.sonarsource.com/u/dmeneses)\
**Post date:** [January 3, 2019, 11:13am UTC](https://community.sonarsource.com/t/build-and-deploy-sonarqube-6-7-from-its-github-source-code/5515/4 "2019-01-03T11:13:08Z")

</div>

I strongly recommend that you use v6.7.6 instead of v6.7 because it will include important bug fixes on top of v6.7.

These zip files contain SonarQube already built and are ready to deploy. They don’t include the source code.  
You can find more information about the deployment here: [https://docs.sonarqube.org/latest/setup/overview/](https://docs.sonarqube.org/latest/setup/overview/)

---

<div class="post-metadata">

**Author:** ![binaypaul](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@binaypaul](https://community.sonarsource.com/u/binaypaul)\
**Post date:** [January 3, 2019, 11:23am UTC](https://community.sonarsource.com/t/build-and-deploy-sonarqube-6-7-from-its-github-source-code/5515/5 "2019-01-03T11:23:34Z")

</div>

Hi Duarte,

Thanks you so much again.

–Binay

---

<div class="post-metadata">

**Author:** ![NicoB](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/nicob/32/3_2.png) [@NicoB](https://community.sonarsource.com/u/NicoB)\
**Post date:** [January 3, 2019, 11:27am UTC](https://community.sonarsource.com/t/build-and-deploy-sonarqube-6-7-from-its-github-source-code/5515/6 "2019-01-03T11:27:35Z")

</div>

> [@dmeneses](#):
>
> You can find more information about the deployment here: [https://docs.sonarqube.org/latest/setup/overview/](https://docs.sonarqube.org/latest/setup/overview/)

In fact, you can also refer to the top-level [SonarQube Downloads page](https://www.sonarqube.org/downloads/): it’ll let you get the latest LTS version, and importantly too it also link to 6.7.x-specific links for _What’s New_ and _Documentation_.

One last question for you Paul: can you share the core reason you absolutely need to go with 6.7.x, and cannot give a spin to latest versions? that can help us adapt our messaging/recommendations.

---

<div class="post-metadata">

**Author:** ![binaypaul](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@binaypaul](https://community.sonarsource.com/u/binaypaul)\
**Post date:** [January 4, 2019, 6:17am UTC](https://community.sonarsource.com/t/build-and-deploy-sonarqube-6-7-from-its-github-source-code/5515/7 "2019-01-04T06:17:02Z")

</div>

There is no such specific reason. I read across a few blogs which said 6.7.x/6.7 being very stable so preferred to give that a shot.

---

<div class="post-metadata">

**Author:** ![binaypaul](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@binaypaul](https://community.sonarsource.com/u/binaypaul)\
**Post date:** [January 4, 2019, 6:19am UTC](https://community.sonarsource.com/t/build-and-deploy-sonarqube-6-7-from-its-github-source-code/5515/8 "2019-01-04T06:19:32Z")

</div>

Hi Duarte,

As Sonarqube is open source, can you suggest me any repository or location from where I can download the source code of Sonarqube 6.7.6.

–Binay

---

<div class="post-metadata">

**Author:** ![NicoB](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/nicob/32/3_2.png) [@NicoB](https://community.sonarsource.com/u/NicoB)\
**Post date:** [January 4, 2019, 9:15am UTC](https://community.sonarsource.com/t/build-and-deploy-sonarqube-6-7-from-its-github-source-code/5515/9 "2019-01-04T09:15:36Z")

</div>

Hi Binay,

> [@binaypaul](#):
>
> There is no such specific reason. I read across a few blogs which said 6.7.x/6.7 being very stable so preferred to give that a shot.

Ack. In that case I suggest you go through this post too:

> [@SonarQube Major Release Cycle and LTS model](https://community.sonarsource.com/t/sonarqube-major-release-cycle-and-lts-model/1016/8):
>
> Hey Balázs, Well the current LTS positioning is (as mentioned in that info note on [downloads page](https://www.sonarqube.org/downloads/)): Released every 18 months, Long-Term Supported versions are the most stable releases to which all critical and blocker issues are back-ported. Meaning that indeed the LTS is often considered as the version of choice if production stability is a prime concern. To share some personal thoughts though, you could read stability in two ways: technical stability (the less bugs the better) and UX/fun…

Because if you do have no specific reason to go with 6.7, then I would highly recommend you actually check-out latest versions, given the huge set of added functional value that was delivered since late 2017 (just glance at all these rich announcements to get a quick feeling of it: [7.2](https://www.sonarqube.org/sonarqube-7-2), [7.3](https://www.sonarqube.org/sonarqube-7-3), [7.4](https://www.sonarqube.org/sonarqube-7-4), [7.5](https://www.sonarqube.org/sonarqube-7-5)).

> [@binaypaul](#):
>
> As Sonarqube is open source, can you suggest me any repository or location from where I can download the source code of Sonarqube 6.7.6.

- source code is in the price GitHub repo you mentioned in your opening post: [GitHub - SonarSource/sonarqube: Continuous Inspection](https://github.com/SonarSource/sonarqube) (note: you can browse past releases via their respective branches in GitHub)
- as discussed in this thread though, if all you’re looking for is **using** SonarQube, then just download directly the built releases @ [https://www.sonarqube.org/](https://www.sonarqube.org/)

---

<div class="post-metadata">

**Author:** ![binaypaul](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@binaypaul](https://community.sonarsource.com/u/binaypaul)\
**Post date:** [January 4, 2019, 11:31am UTC](https://community.sonarsource.com/t/build-and-deploy-sonarqube-6-7-from-its-github-source-code/5515/10 "2019-01-04T11:31:58Z")

</div>

Hi Nicolas,

So finally I decided to go with v7.5 as its source code is available at [https://github.com/SonarSource/sonarqube](https://github.com/SonarSource/sonarqube). I know that I can use the built releases but I need to build it from its source code and then use it.  
However, building it from v7.5 source code available at [https://github.com/SonarSource/sonarqube](https://github.com/SonarSource/sonarqube) didn’t go smooth, I am now stuck with junit test case failure which caused the build to fail.  
Internet wasn’t of much help in solving this. It will be great if I can get help here. PFB the screenshot:

 ![BuildFail_Windows%20PowerShell](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/2X/e/e455af37485827b6217469d9d635c639aaa7bd5c.jpeg)

---

<div class="post-metadata">

**Author:** ![NicoB](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/nicob/32/3_2.png) [@NicoB](https://community.sonarsource.com/u/NicoB)\
**Post date:** [January 4, 2019, 12:35pm UTC](https://community.sonarsource.com/t/build-and-deploy-sonarqube-6-7-from-its-github-source-code/5515/11 "2019-01-04T12:35:57Z")

</div>

> [@binaypaul](#):
>
> I know that I can use the built releases but I need to build it from its source code and then use it.

This is very hard (for me) to understand without further explanations. Appreciate if you can explain _why_ you **need** to build it from source code.

As far as compilation is concerned, I personally don’t have the knowledge to help on that.
