I am running a azure devops pipeline with sonar cloud and I wanted to exclude selenium folder from sonar cloud with following:
sonar.exclusions=NWP.Selenium/**
And it did this
It was not included in coverage but it was not fully excluded
Does anybody know a way how to fully exclude it ?
I finally figured it out.
The command needed in azure devops pipeline is the following sonar.test.exclusions=NWP.Selenium/**
Now I have this
For some reason Selenium is treated like sonar.test.exclusions
Related
I'm trying to build a CI pipeline for a Kotlin project developed on Android Studio. Using Azure DevOps pipelines.
I'm having an issue finding a Kotlin plugin or Tasks for the pipeline as we can see in the picture.
Anyone have an idea about how can we implement this type of pipeline? I didn't find anything on the internet and Microsoft have no documentation.
If I understand correctly the answer you are looking for is the Gradle task. Here is a blog from someone using gradle and in azure devops with their Kotlin code. But I am sure there are more details around how to set up gradle task for kotlin build.
The issue was not with Kotlin or Java. The issue was with the SDK being used on the Hosting Agent.
The solution was the following steps:
Upload a SDK to Azure Blob Storage
Use the Use Java Task in order to install the specified SDK
Run the Android Pipeline with Sonarqube tasks, build was successfully run and SonarQube Code Review was successfully executed.
I am trying to integrate Allure2 reports with Jira plugin called Xray. So far i managed to generate those reports on local machine and on Jenkins server in pipeline job with Allure plugin.
Also i see that there is an actual Allure plugin called xray-plugin on Allure Framework GitHub, however instructions how to use this plugin are not clear enough for me (for example, where one should put those Jira env variables?).
Can someone here explain in more clear manner how to integrate Allure2 with x-ray?
I have been trying to find out how should I execute the Selenium Test (Java) using gitlab CI
I have created an automation framework and I am able to run the maven project via jenkins
I wanted to run the same maven project with the help of gitlab ci runner
My Code will be available on git and just need to trigger the execution as a when developer checks in the code
Please help me out with this setup, I have been trying to find out the solution but couldn't figure out any
I suggest you to read about jeknins and gitlab hooks here: https://docs.gitlab.com/ee/integration/jenkins.html
, In general, these hooks "follows" any push you perform to you gitlab repository, and run the desired build on them, including pulling the latest code.
I have created a Jenkins maven task to run selenium tests on one project, and now I want to use these selenium test in a proper way for CI.
Actually, I have a Jenkins task which 1-builds the project, 2- uses sonar, 3 - deploys the project. I would like to add the selenium tests to this process. The question is: can I run the selenium tests before deployment? Is it necessary to do a previous deploy for the selenium tests before the real deployment? Is there anyway to simulate a deployment or something like that so I can run the selenium tests?I would appreciate If you could advise me on how to do or any plugin which could help me.
As per my understanding, To deal with the scenario you should run the selenium test on QA environment. If all test pass then deployment should start for staging etc.
Additionally, once the deployment is done on staging, then selenium script should run again, test staging and if something went wrong then rollback from staging should be happened.
I never tried it but you can use below github plug-in for deployment(in case you are using github) :-
https://wiki.jenkins.io/display/JENKINS/GitHub+plugin
If you are using SVN then use below :-
https://www.packtpub.com/mapt/book/application_development/9781783553471/3
Hope it will help you :)
I am working on one devops project, from selenium I am running test script and a log file is getting generated. How to configure jira to read the log file generated by selenium.. I want to go with API approch but unable to do so. Jenkins I am using as a CI tool here. Any suggestions ?
Hmm. Generally it's a better approach to display your test results in Jenkins instead of creating issues for them automatically. You didn't mention what technology you use (nodejs, java, ...), but typically you let your test runner generate a test results file that jenkins can interprete, so it will display the results nicely. There are various jenkins plugins that can help with that.
If you want to go a step further and still create issues automatically, you can script that in a separate step of your jenkins job, using the JIRA REST API and a scripting language of your choice. It just comes down to parsing the results file and let your script create issues for the failures.