-
Notifications
You must be signed in to change notification settings - Fork 613
-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't submit build status: No GitLab connection configured #411
Comments
I bet the value of |
Thanks for this idea, I should have mentioned this in my initial writeup. I checked this several times, also played with different apostrophes in the Jenkinsfile. The names really should match. Used copy paste to make sure of that... |
I think I see the issue. The README was adapted due to this issue #409. But the change is wrong. |
@coder-hugo I just saw your comment, and since I made that README change, I went and changed my test Jenkinsfile to remove the colon. But the build now fails: groovy.lang.MissingPropertyException: No such property: properties for class: groovy.lang.Binding I think the colon is required... |
@omehegan nope this colon makes the value properties just a label for the following code block and does not invoke the properties workflow step. So you have to use either the syntax that was described previously in the readme or the one of my last comment. If the last version doesn't work for you just add parantheses around the argument of the step or update your Jenkins Pipeline Plugins. |
I now tried your syntax as described in you last comment.
I don't have a workflow plugin I think it was replaced by pipeline which is at version 2.3 and pipeline groovy is at 2.15. groovy.lang.MissingPropertyException: No such property: properties for class: groovy.lang.Binding I then restored the setting to the original from the Readme:
And I now get: java.lang.UnsupportedOperationException: must specify $class with an implementation of interface java.util.List I then did one last try, after googling more and it seems the following line is working!:
Now the plugin seems to have a connection and tries to push commit status. Unfortunately this now throws errors but I probably should open another issue if I can't find a fix for this. [Pipeline] gitlabCommitStatus |
Sounds like there was a change to the Pipeline plugin which requires different syntax for this. We should isolate that and call it out in the documentation. I'm pretty confused now about what this is doing and why different syntaxes work or don't work. |
The same problem appears to me:
I've try many syntax (post here and other website) in my pipeline, but anyway, nothing is send to Gitlab... When I push, Gitlab trigger the job, jenkins do the job, but always Question : does Gitlab runner is required to make it works ? |
I had the exact same issue but it is fixed after updating all the Pipeline plugins to the very last version with the syntax :
|
Works with last version ( |
@coder-hugo from talking to jglick, it seems like this syntax is most universally correct:
When I use I get the same error that @sturmf did: |
Updated README. |
I still get the same error message: "No GitLab connection configured". I found this error in the Jenkins log:
If I click on "Test Connection" in the System Configuration, the status is successful, but I get the error message "API Token for Gitlab access required" One weird thing is that the credential has no usage according to the credential page. But the right token id is stored in
|
Hello, some issue. The latest versions of Jenkins and GitLab have used. |
Same issue here |
For people using freestyle jobs maybe check that you've updated the job configuration afterward ? (this diff is form inheritance plugin) However I now get a 500 when triggering the build. Maybe the configuration is somehow incorrect ? jobCredentialId missing ?
|
Confirmed issue and fix for me in the #1119 issue, |
Issue
I try to send the build status from Jenkins back to GitLab but it always only prints: "No GitLab connection configured" in the Jobs console output. Triggering the build automatically works fine and also if I go into the Jenkins configuration under the topic GitLab I can press "Test connection" and I get success.
The first line of my Jenkinsfile looks like this:
properties: [[$class: 'GitLabConnectionProperty', gitLabConnection: 'gitlab']]
Context
Logs & Traces
The GitLab log does not show anything for the submit step, only the trigger event of the build is logged.
Problem description
Anything else I could try or provide for further assistance?
The text was updated successfully, but these errors were encountered: