# Jenkins gradle-check always failed when make Pull Request

**URL:** <https://forum.opensearch.org/t/jenkins-gradle-check-always-failed-when-make-pull-request/12982>\
**Category:** OpenSearch\
**Created:** [March 7, 2023, 6:27am UTC](https://forum.opensearch.org/t/jenkins-gradle-check-always-failed-when-make-pull-request/12982 "2023-03-07T06:27:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xiaochen](https://avatars.discourse-cdn.com/v4/letter/x/fbc32d/32.png) [@Xiaochen](https://forum.opensearch.org/u/Xiaochen)\
**Post date:** [March 7, 2023, 6:27am UTC](https://forum.opensearch.org/t/jenkins-gradle-check-always-failed-when-make-pull-request/12982/1 "2023-03-07T06:27:27Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):

**Describe the issue** :

When I make a Pull Request (already create issue and DCO passed), the gradle-check in Jenkins always report failed, but I cannot found any error infomation in detail in log.  
merge target branch is main.  
more screenshot is in reply (I cannot paste them all in topic because new user limit)

the PR link is:

> <https://github.com/opensearch-project/OpenSearch/pull/6553>
>
> \### Description
> add remark field to NodeData and TaskInfo
> 
> \### Issues Resolve…d
> \[#6552\]
> 
> \### Check List
> \- \[\] New functionality includes testing.
> - \[\] All tests pass
> \- \[\] New functionality has been documented.
> - \[\] New functionality has javadoc added
> \- \[x\] Commits are signed per the DCO using --signoff
> \- \[\] Commit changes are listed out in CHANGELOG.md file (See: \[Changelog\](../blob/main/CONTRIBUTING.md#changelog))
> 
> By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
> For more information on following Developer Certificate of Origin and signing off your commits, please check \[here\](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

**Configuration** :

**Relevant Logs or Screenshots** :

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/2/261087d79476399448529de62f174bd53a286c1d.png)

---

<div class="post-metadata">

**Author:** ![Xiaochen](https://avatars.discourse-cdn.com/v4/letter/x/fbc32d/32.png) [@Xiaochen](https://forum.opensearch.org/u/Xiaochen)\
**Post date:** [March 7, 2023, 6:28am UTC](https://forum.opensearch.org/t/jenkins-gradle-check-always-failed-when-make-pull-request/12982/2 "2023-03-07T06:28:27Z")

</div>

additional screenshot:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/d/d0d1b3ee13dc5a74cbfbb690190f6a777349e38b.png)

---

<div class="post-metadata">

**Author:** ![Xiaochen](https://avatars.discourse-cdn.com/v4/letter/x/fbc32d/32.png) [@Xiaochen](https://forum.opensearch.org/u/Xiaochen)\
**Post date:** [March 7, 2023, 6:29am UTC](https://forum.opensearch.org/t/jenkins-gradle-check-always-failed-when-make-pull-request/12982/3 "2023-03-07T06:29:29Z")

</div>

additional screenshot 2:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/4/47215342d7a05ea91212ccfacfa1b89e8c99febf.png)

---

<div class="post-metadata">

**Author:** ![ralph](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/ralph/32/1194_2.png) [@ralph](https://forum.opensearch.org/u/ralph)\
**Post date:** [March 7, 2023, 7:37am UTC](https://forum.opensearch.org/t/jenkins-gradle-check-always-failed-when-make-pull-request/12982/4 "2023-03-07T07:37:37Z")

</div>

you have to look at the “console output” of the jenkins build to see the errors:  
[https://build.ci.opensearch.org/job/gradle-check/12056/console](https://build.ci.opensearch.org/job/gradle-check/12056/console)

as you can see there the spotless check failed (just search for “FAILURE” to find the message - it’s nearly at the end). i.e. the check wants you to re-format your code a bit.

---

<div class="post-metadata">

**Author:** ![nurym0807](https://avatars.discourse-cdn.com/v4/letter/n/c0e974/32.png) [@nurym0807](https://forum.opensearch.org/u/nurym0807)\
**Post date:** [March 20, 2023, 5:28am UTC](https://forum.opensearch.org/t/jenkins-gradle-check-always-failed-when-make-pull-request/12982/5 "2023-03-20T05:28:52Z")

</div>

you can run the command ./gradlew spotlessCheck for faultlessness in the terminal in your directory, if the build fails, run the command./gradlew.bat :spotlessApply, and then run ./gradlew check
