# Gradle project problem

**URL:** <https://community.sonarsource.com/t/gradle-project-problem/42852>\
**Category:** SonarQube Server / Community Build\
**Tags:** docker\
**Created:** [May 6, 2021, 7:06am UTC](https://community.sonarsource.com/t/gradle-project-problem/42852 "2021-05-06T07:06:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aksimoN](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/aksimon/32/21591_2.png) [@aksimoN](https://community.sonarsource.com/u/aksimoN)\
**Post date:** [May 6, 2021, 7:06am UTC](https://community.sonarsource.com/t/gradle-project-problem/42852/1 "2021-05-06T07:06:49Z")

</div>

I’m trying to scan gradle project. I’m using autogenerated yaml file:

```auto
sonarqube-check:
  image: jdk-11.0.3.jdk
  variables:
    SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
    GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
  cache:
    key: "${CI_JOB_NAME}"
    paths:
      - .sonar/cache
  script: 
    - cd engine
    - gradle sonarqube
  allow_failure: true
  only:
    - release-in # or the name of your main branch

```

I can’t handle with this error:

```auto
 Using Docker executor with image jdk-11.0.3.jdk ...
 Pulling docker image jdk-11.0.3.jdk ...
WARNING: Failed to pull image with policy "always": Error response from daemon: pull access denied for jdk-11.0.3.jdk, repository does not exist or may require 'docker login': denied: requested access to the resource is denied (manager.go:205:1s)
 ERROR: Job failed (system failure): failed to pull image "jdk-11.0.3.jdk" with specified policies [always]: Error response from daemon: pull access denied for jdk-11.0.3.jdk, repository does not exist or may require 'docker login': denied: requested access to the resource is denied (manager.go:205:1s)

```

But in other projects I don’t have this problem

---

<div class="post-metadata">

**Author:** ![Jeff\_Zapotoczny](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jeff_zapotoczny/32/2816_2.png) [@Jeff\_Zapotoczny](https://community.sonarsource.com/u/Jeff_Zapotoczny)\
**Post date:** [May 7, 2021, 7:50pm UTC](https://community.sonarsource.com/t/gradle-project-problem/42852/2 "2021-05-07T19:50:43Z")

</div>

Based on the YAML syntax it looks like this is for GitLab?

Try following the [examples from our GitLab docs](https://docs.sonarqube.org/latest/analysis/gitlab-integration/) rather than using whatever tool auto generated this template for you.

---

<div class="post-metadata">

**Author:** ![aksimoN](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/aksimon/32/21591_2.png) [@aksimoN](https://community.sonarsource.com/u/aksimoN)\
**Post date:** [May 8, 2021, 8:46am UTC](https://community.sonarsource.com/t/gradle-project-problem/42852/3 "2021-05-08T08:46:41Z")

</div>

I did, that’s why I can’t understand why I have this error on line with image

---

<div class="post-metadata">

**Author:** ![Jeff\_Zapotoczny](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jeff_zapotoczny/32/2816_2.png) [@Jeff\_Zapotoczny](https://community.sonarsource.com/u/Jeff_Zapotoczny)\
**Post date:** [May 10, 2021, 1:59pm UTC](https://community.sonarsource.com/t/gradle-project-problem/42852/4 "2021-05-10T13:59:12Z")

</div>

Our [documented example](https://docs.sonarqube.org/latest/analysis/gitlab-integration/) doesn’t use this JDK 11 image you’re getting the error on:

```auto
sonarqube-check:
  image: gradle:jre11-slim

```
