Jenkins auto build using CM Synergy - jenkins

I am trying to set up an auto build using Jenkins. All I have to do is whenever there is a code change in the database, the automated build should happen and the build version should have the latest number. I saw all the websites using Jenkins with Git or other version control systems. I just want to have a clear picture about Jenkins and its complete details. Is there any possibility that I can use Jenkins with IBM Rational Synergy?
It would be great if i could get any available links or tutorials.

You can learn about Jenkins here. For build to automatically happen, you just have to enable Poll SCM option in Build Triggers section. You can check this link which shows how to setup your job using Poll SCM option. You should also check this link for setting up Quiet period which is a good to enable when using Polling feature.
If you are using IBM Rational CM/Synergy, there is a plugin for it. Install it and get going! :)

Related

How to add Sonarqube into Jenkins

I have installed sonar and jenkins. Now I want to add Sonarqube into Jenkins. But in the manage plugins, it doesn't show me the Sonarqube.the display I get
SonarQube is a standalone server. It offers a web user interface to visualize bugs, code smells and vulnerabilities. You cannot include this web-ui SonarQube in Jenkins.
However, you can trigger a scan as part of your Jenkins job. This scan can "send" its findings into a SonarQube installation - either hosted by your own (on-premise), or using the hosting offer at sonarcloud.io.
There are a couple of different ways to include the scanner in your job, but the setup is specific to your programming language and build tools (Maven, VisualStudio, command line, ...). Check the sonarcloud docs for the way, that fit's best to your situation.

How to integrate Percy.io with Gerrit (Repository Integrations)?

I am working on a Visual Regression Testing project, that requires Percy. I followed the instructions for Repository Integrations. The instructions only show 'Connect your GitHub or GitLab repositories to add visual testing to pull/merge requests.', but I want to integrate with Gerrit. And also Jenkins, I cannot find any relative stuff that helps me for the integration on manage Jenkins page as I follow the instructions on Percy.
While Percy doesn't have a native Gerrit integration yet, you can use Percy webhooks to get notifications about when Percy builds are finished, visual changes are ready for review, and when they've been reviewed and approved, which you could use to set statuses in Gerrit. For Jenkins, please see https://docs.percy.io/docs/jenkins — I would suggest you try getting the local setup working first with your application and then go from there, since it should be pretty easy to port that setup into your CI system (just need to set PERCY_TOKEN environment variable).

Integration Jira Cloud with Jenkins

I want to integrate Jenkins with JIRA Cloud.
I want Jenkins to start build job when i'm updating Issue Status in JIRA.
example: when the issue in jira is going from status IN PROGRESS to DEV COMPLETED, I want Jenkis to start a build.
regards, Maja
Usually the flow is a little bit different.
After you done with the development you should add JIRA ticket number in commit.
Then create pull request (if you use Git as VCS) and merge it to main branch.
Git server will trigger build on the Jenkins side (you should find Jenkins plugin for your case).
After build is done there Jenkins can send update status to Jira (via Jenkins JIRA plugin
There are some variations. For example you want to allow merge only when build on Jenkins was successful. In this case JIRA update should be performed by Git service.
Thank you for your fast response, but we got different situation than the given answer. I will try to explain clearly.
1. we got Jira on cloud that successfully communicate with Gitlab. (there is a build in jenkins after commit in Jira)
2. and we got one test Jenkins on our local machine
Jira is configured in Jenkins and we got all needed plugins in Jenkins.
Now we want, with every changed status on the issue in Jira (from IN PROGRESS to DEV COMPLETED), Jenkins to make an automatic build on the job.
Additionaly, Is there any Jenkins Plugin for Jira CLOUD that could help us?
At this time, there is no Jenkins plugin / add-on for JIRA cloud, even though it is in high demand. It is rumored there may be one coming out in November / December 2017 as a beta.
If you are using Bitbucket, I'd recommend checking out Pipelines. Or, take a look at Bamboo or TeamCity as these tools integrate directly with JIRA Software Cloud.

will the jobs need to be reconfigured after we update any Plugins in Jenkins?

Willing to update plug-ins in the jenkins windows machine, I have used those plug-ins in many jobs as required, So once update completes, will the jobs automatically works fine, or should I change configuration on each job, after the update.
If a plugin update changes something at its configuration there's usually an according message attached in Manage Jenkins → Manage Plugins → Updates.
It depends - there might be an update of a plugin that is not backward compatible. In theory you should learn about such breaking change from description of new version, either on the plugin website or in Jenkins itself in plugin "to be updated" section.

CICD with jenkins and sonarqube

from the last week i am working with jenkins, and its going good but at the end of R&D I have lost of confusion, these are questions which confusingto me.
How to do Continuous Integration with jenkins of Website?
hoe to view Testing analysis reports produced by sonarqube server to my local system?
what happens where all my developers will do commit and push at the same time on repository?
How to deploy my web application on targeted server using jenkins?
How to I use sonarqube to test my website ?
If you are building a .net website, install msbuild plugin in jenkins. Create a jenkins job, add a step checkout your website (git/svn - install required repo plugin). Schedule to run nightly or hourly depending on your needs.
Type in url for your sonarqube server and then you can view the reports.
This is not an issue if your developers are comitting simultaneously. Usually a CI tool such as Jenkins will take care of that.
This is called continuous deployment or continuous delivery. Something like Octopus Deploy can help you if you are deploying .net applications. You can use the tool octo.exe and pass the API key as parameter to deploy to a specific environment.
SonarQube is used as a quality gate for code analysis. It is not a test framework. Try to investigate on how to use selenium framework for automation testing.
I hope that I have answered your questions.

Resources