I have a problem where the build status from my jenkins server is not showing in Bitbucket. I have followed every step here: Bitbucket Cloud Build Status Notifier Plugin and I have also added the Bitbucket Oauth plugin.
The system log looks like this:
It seems like there is something wrong with the build data. I am not an expert and I have followed all the steps as I should, what could the problem be?
Feel free the ask questions if you need more info!
I have the same issue after upgrade Jenkins... I don't know where is the problem, the warning message is at:
https://github.com/jenkinsci/bitbucket-build-status-notifier-plugin/blob/master/src/main/java/org/jenkinsci/plugins/bitbucket/scm/GitScmAdapter.java#L59
Update:
Ok I solve the issue after downgrade Git plugin to 3.9.1
Cheers
Related
I am trying to execute a CI/CD project. Everytime i am trying to create a job and trying to save my job it pops up an error. I have gone through a few issues available on the internet, but none of them have resolved the issue.
Can anybody help in this regard? Thanks
Tomcat 9 Server
Java 16.0.1
Jenkins 2.361.1
I would suggest do following:
Check the Jenkins logs on server and try to fix.
If don't work, try to restart your Jenkins.
I have some problems with getting GitHub Pull Request Builder to work.
While configuring this plugin I used all of the given tests to check:
basic connection to GitHub
permissions to a repository
adding comment to pull-request
updating commit status
All of these things work right, but issuing pullrequest does not trigger the pipeline start. All I was able to get out of Jenkins logs is just an info that pr is being checked...jenkins_logs
Have anyone run into the same trouble? I can't find a solution to this problem.
I am not able to find how to add hooks of jenkin in bitbucket,
Previously there was a link in bitbucket for hooks but now it is missing
Please help
UPDATE:-
All the solution that are given on stackoverflow are outdated as bitbucket has change few feature
Under Build triggers there is a checkbox with label "Build when a change is pushed to BitBucket" check this box, when changes are pushed to bitbucket it will start a build.
We use the Jenkins Bitbucket Webhook and it works well.
It's for Bitbucket Server 4.0.0 - 4.14.4
I hope this helps.
EDIT: Today (Nov, 2017), this add on is not free, but worth the cost.
What do you put into the system hook URL? I see a lot of examples but they look like JSON scripts to me.
I'm trying to configure gitlab to hook jenkins to create projects when projects are generated in gitlab. I'd also like builds to be run when a merge (pull) request is generated for a repo.
I've followed the steps outlined here for the gitlab hook plugin:
http://doc.gitlab.com/ee/integration/jenkins.html
But it's still not generating builds on push requests. Perhaps i don't have something setup right?
I have also tried and failed to configure Gitlab to integrate with Jenkins by following the instructions at http://doc.gitlab.com/ee/integration/jenkins.html#jenkins-service
For me the reason was that I didn't have Gitlab EE installed. The page specifically states: "The Jenkins project service code is only available in GitLab EE"
I discovered by chance my answer. In gitlab under the project settings you can add the following hook to trigger a build on a pull request or commit.
http://gitlab.example.com/job/example_project/build?token=UserToken.
I believe I saw it in Jenkins.
Now i've installed the gitlab plugin and i've tried the build_commit? hook and some other hooks but i was running into other errors such as asking for repo location when i've provided it. This does the trick though and i'm happy enough for now.
Jenkins build statuses are SUCCESS, FAILURE , UNSTABLE and ABORTED
I would like to rename UNSTABLE status to something else, i.e. ERROR.
How can it be done without patching Jenkins source code?
The best and only way is patching the jenkins source code.
Because, Jenkins doesn't have feature of changing status name which are decided by open-source community.
I would rather suggest you to create a plugin as there is not any plugin out there that can solve your problem.