小编Inf*_*ter的帖子

Gitlab有条件地执行阶段

有3个阶段 - 构建,测试和部署.gitlab-ci.yml.

需要运行夜间回归测试阶段 - 好nightly:)

这是相关的.gitlab-ci.yml代码:

stages:
  - build
  - test
  - deploy

build_project:
  stage: build
  script:
    - cd ./some-dir
    - build-script.sh
  except:
  - tags

#Run this only when say variable 'NIGHTLY_TEST == True'. But HOW?
nightly_regression_test_project:
  stage: test
  script:
    - cd ./some-dir
    - execute test-script
Run Code Online (Sandbox Code Playgroud)

每天标记到only运行test阶段是不可取的.

还有其他想法吗?

git gitlab gitlab-ci

22
推荐指数
4
解决办法
1万
查看次数

在SonarQube分析期间"未找到类"

我在Jenkins工作中的sonarqube分析中有很多错误,分析成功

[ERROR] [14:36:44.124] Class not found: org.joda.convert.FromString
[ERROR] [14:36:44.126] Class not found: org.joda.convert.ToString
[ERROR] [14:34:42.441] Class not found: org.apache.commons.logging.Log
[ERROR] [14:34:42.724] Class not found: org.apache.oro.text.perl.Perl5Util
[ERROR] [14:34:31.442] Class not found: io.swagger.annotations.ApiModel
[ERROR] [14:34:31.442] Class not found: io.swagger.annotations.ApiModelProperty
[ERROR] [14:28:37.756] Class not found: org.apache.commons.logging.Log
[ERROR] [14:28:40.030] Class not found: org.apache.oro.text.perl.Perl5Util
Run Code Online (Sandbox Code Playgroud)

SonareQube:5.1.2

sonarQube jenkins插件:2.6

JDK:1.7

请帮忙

谢谢

jenkins sonarqube sonarqube5.1.2

15
推荐指数
1
解决办法
6577
查看次数

Jenkins只构建了一个被推送的分支

我想配置Jenkins只构建一个分支已被推送到github.我尝试在Branch Specifier留空

但在我提交/推动后,所有分支都将建成.我只需要一个刚刚提交/推送的分支.我怎样才能做到这一点?谢谢.

git github webhooks jenkins

7
推荐指数
1
解决办法
451
查看次数

如何在 GitHub 中创建分支

我正在学习 Git 并进行实验。我了解如何进行基本操作,但正在努力创建一个新分支。我在 Windows 中使用命令提示符,在浏览器中使用 github 工具。我试图通过在浏览器中创建一个新分支(名为 branch_1)来模拟新分支的创建,但是当我尝试在命令提示符中找到该分支时,它没有出现。例如,这是我在命令提示符中得到的内容:

git branch
 _notes/dwsync.xml
master
v1.1
v1.2
v1.3
Run Code Online (Sandbox Code Playgroud)

如何让新分支出现?

git github git-branch

5
推荐指数
3
解决办法
7475
查看次数

不推荐使用SonarQube Post-build Action

使用Jenkins 1.642.2对我所有的maven项目使用SonarQube 5.6.1进行代码分析.

当我使用maven目标声纳:声纳时,他们需要更多时间来分析文件(按文件超过7秒):

[INFO] Sensor SCM Sensor
[INFO] SCM provider for this project is: svn
[INFO] 1079 files to be analyzed
[INFO] 
[INFO] 2/1079 files analyzed
[INFO] 3/1079 files analyzed
[INFO] 4/1079 files analyzed
[INFO] 5/1079 files analyzed
Run Code Online (Sandbox Code Playgroud)

当我使用带有此配置的SonarQube扫描仪时:

SonarQube服务器

SonarQube扫描仪

SonarQube扫描仪

然后我有这个错误:

WARN: Property 'sonar.jdbc.url' is not supported any more. It will be  ignored. There is no longer any DB connection to the SQ database.
WARN: Property 'sonar.jdbc.username' is not supported any more. It will be ignored. There is no longer …
Run Code Online (Sandbox Code Playgroud)

maven-3 jenkins java-8 sonarqube sonarqube-scan

4
推荐指数
1
解决办法
6895
查看次数