I'm trying to use CSSLint with Jenkins Continious Integration using MSBuild.
I didn't found a plugin to install on Jenkins.
Does anyone knows how I can find a plugin that has the same functionality as CSSLint which can be installed with Jenkins?
I believe you are looking for Violation plugin.
The latest versions of the Violations Plugin allow you to report output using:
CSS Lint output --format=lint-xml and csslint violations configuration
OR
CSS Lint output --format=checkstyle-xml and checkstyle violations configuration
Related
I do not see the fortify plugin listed in the pipeline syntax.
mvn sca:clean sca:translate sca:scan
The above command does not execute.
I get the following:
No plugin found for prefix 'sca' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories
Before using that command, you must install the Fortify Maven plugin. It's located in [Fortify install]/Samples/Advanced/Maven Plugin. There's a readme there with the details, it's just one command but check your readme for the syntax.
I want to do static code analyze for typescript Jenkins job using SonarQube. I can do it by installing tsLint lib to my project and compile gulp file in Jenkins, but I think it is not a developer friendly method. Is there any maven command can run on Jenkins shell to analyze typescript code in SonarQube.
you can use this sonarqube plug-in https://github.com/Pablissimo/SonarTsPlugin... This plugin works with tslint but it is no official sonarqube plugin... In my case it works perfectly
The Sonarlint plugin for IntelliJ does analysis on our Java code, but it won't analyze Groovy code in the same project.
We have a Grails project which works with sonar-runner on the command line. When I install the IntelliJ IDEA Sonarlint plugin, the plugin doesn't seem to pick up the settings from our command line config, and it doesn't show the warning highlights for issues like it does for the Java files in the editor.
Our project uses the "code-coverage" Grails plugin to generate an XML coverage report, then the sonar runner (command line tool) pulls in the metrics. In sonar-project.properties, we set:
# Project key within sonar
sonar.projectKey=com.mycompany:myapp
sonar.projectName=My Grails Project
sonar.projectVersion=1.0
# Source directories to analyze
sonar.sources=src/groovy, grails-app/domain, grails-app/services, grails-app/controllers, grails-app/utils, grails-app/taglib, grails-app/views
# Set language for the project to be Groovy
sonar.language=grvy
# Path to the Cobertura XML report
sonar.grvy.coveragePlugin=cobertura
sonar.groovy.cobertura.reportPath=target/test-reports/cobertura/coverage.xml
sonar.jdbc.username=...
sonar.jdbc.password=...
sonar.host.url=http://sonar.mycompany.com
sonar.jdbc.url=...
sonar.jdbc.driverClassName=...
The properties file has JDBC settings, the coverage report path, etc.
SonarLint is a different product than SonarQube (even if there are some links). For example SonarLint doesn't know what is sonar-project.properties. The purpose is to integrate with IntelliJ, not with some external configuration.
Regarding Groovy support, this is not planned since we don't have any Groovy analyzer (the SonarQube plugin for Groovy is simply reusing codenarc reports AFAIK). If you want to run Codenarc in IntelliJ, there is already a dedicated plugin for that.
Good morning,
I have upgrade my installation of Sonar to the version 4.5.1 and use the latest plugin in Jenkins.
Now when I run a build with Sonar Analysis, Sonar tried to analyse the ear module and generate an error because there is no source in this module.
It is the responsibility of your build to exclude the module. See http://docs.codehaus.org/display/SONAR/Analyzing+with+Maven#AnalyzingwithMaven-ConfiguringtheSonarQubeAnalysis ("Excluding a module from SonarQube" analysis section) for an example with Maven.
Maybe this would help http://docs.codehaus.org/display/SONAR/Narrowing+the+Focus.
Regards.
I am quite new to Jenkins and build, so my question can be silly.
I have installed Jenkins and successfully installed plugins under jenkins MSbuild, Nant and Clear Case plugin and its giving expected output.
Problem is I have my own makefiles created in NMAKE for each components and i want to compile it with cmake as it there is no other way to compile NMAKE under jenkins.
just not getting ways to do it, please tell me the plugin to be used to compile make files created using namke under jenkins.
Xshell plugin is the solution.
It runs all my NMAKE scripts on cmd and i get the expected output. thanks for prompt response slav.
Don't know anything about cmake/nmake, but there is a cmake plugin for Jenkins, and this blog post shows configuration and mentions nmake. Is that not enough?