Error in pipe sonarsource/sonarcloud-quality-gate:0.1.3 like sintax

hi guys.

i’m having a issue in the pipe sonarcloud-quality-gate

i use bit bucket cloud and need validate the quality gate status

this is my pipeline

image: maven:3.3.9

    - step:
        name: maven compile
          - mvn -B clean verify
          - pipe: sonarsource/sonarcloud-scan:1.1.0
              SONAR_TOKEN: 'a6a74d191bc3104cb8114d3742af93756d730e5e'
              EXTRA_ARGS: ''
              SONAR_SCANNER_OPTS: '-Xmx512m'
              DEBUG: 'false'
          - pipe: sonarsource/sonarcloud-quality-gate:0.1.3
             SONAR_TOKEN: 'a6a74d191bc3104cb8114d3742af93756d730e5e'
             SONAR_QUALITY_GATE_TIMEOUT: '180'

and the error is only:

✖ Unknown error: unsupported operand type(s) for //: 'str' and 'int'

the local test of code is successful

share the log and the file of destination of sonar scan PIPE

pipelineLog-4.txt (152.4 KB) (4.3 KB)

Hi @Cesar_Salas,

Could you try removing the single quotes in the following snippet?

Please let me know if that fixes it, I’ll update the documentation accordingly.

hi, thanks for the answer

i had axactly the same issue

I’ll keep trying for other variables

ok, the pipe ended correctly

the issue occurs when you add the variable “SONAR_QUALITY_GATE_TIMEOUT”

i delete this variable and I finish without problems


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.