在我的工作中,所有开发都使用Java技术,我们使用Nexus来管理我们的Maven存储库.但是对于一个新项目,构建需要dll和exe工件.是否可以将这些Windows二进制文件放入Nexus存储库?是否有一些插件可以使这更简单?我想做什么疯了?
我正在使用Jenkins 2.89,用于Jenkins 2.6.1的SonarQube扫描仪和配置有Jenkins的webhook的SonarQube 6.7.
我正在触发声纳分析:
stage("SonarQube Analysis") {
script {
workspace = resolveWorkspacePath()
withEnv(["JAVA_HOME=${ tool 'java-8'}","PATH+MAVEN=${tool 'Maven 3.2.2'}/bin:${env.JAVA_HOME}/bin"]) {
withSonarQubeEnv('Sonar Solem') {
sh "mvn -f ${workspace}/pom.xml org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar -Dsonar.host.url=http://sonar.mycompany.cl"
}
}
}
Run Code Online (Sandbox Code Playgroud)
然后在下一阶段收集状态:
stage("SonarQube Quality Gate") {
steps {
script {
timeout(time: 1, unit: 'HOURS') {
def qg = waitForQualityGate()
if (qg.status != 'OK') {
echo "Status: ${qg.status}"
error "Pipeline aborted due to quality gate failure: ${qg.status}"
}
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
登录控制台显示:
[Pipeline] script
[Pipeline] {
[Pipeline] timeout
Timeout set …
Run Code Online (Sandbox Code Playgroud) 我刚刚在CentOS 6盒子中将SonarQube从6.0升级到6.7 LTS,并注意到ElasticSearch(ES)无法启动,因为内核(2.6.32-696.3.1.el6.x86_64)没有可用的seccomp.
这在系统调用过滤器检查中正式记录,没有此功能的系统的正确解决方法是配置bootstrap.system_call_filter
为false elasticsearch.yml
.
这里的问题是因为Sonar在启动时创建了ES配置,写入$SONAR_HOME/temp/conf/es/elasticsearch.yml
并且我没有找到设置bootstrap.system_call_filter
属性的方法.
我尝试了一种自然(无证)方式介绍sonar.search.bootstrap.system_call_filter
和bootstrap.system_call_filter
属性,sonar.properties
但它不起作用.