sonar,jiar,xray,jenkins[cli] [sudoers]
curl -n -X POST http://52.83.39.59:8080'/job/CLA_SSO/buildWithParameters?token=11d710a8eac8012bea28b26fe115769764'
命令行执行jenkins,构建job(可传递参数)
https://www.cnblogs.com/meitian/p/7609178.html
使用命令行自动启动Jenkins的job
https://blog.csdn.net/carolzhang8406/article/details/44458717
此时还不能立即构建,因为jenkins触发脚本并不是root用户,因此需要将jenkins免密码,并将用户加入到docker组。
$ cat /etc/sudoers.d/jenkins
Defaults:jenkins !requiretty
jenkins ALL=(ALL) NOPASSWD: ALL
第一行表示仅jenkins用户不需要控制终端,不然在Jenkins脚本中无法使用sudo。
$ usermod -G docker jenkins
sonar-
https://www.callicoder.com/java-simpledateformat-thread-safety-issues/
jira-api-update version
https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/version-updateVersion
https://arjunphp.com/how-to-integrate-sonar-for-a-node-js-project/
https://github.com/bellingard/sonar-scanner-npm
https://www.getxray.app/blog/automated-tests-with-jenkins/
https://confluence.xpand-it.com/display/public/XRAY/Coverage+Analysis
https://www.jianshu.com/p/50e0289a4656
Cucumber Unit Test
Feature (功能) test suite (测试用例集)
Scenario(情景) test case (测试用例)
Given(给定) setup(创建测试所需环境)
When(当) test(触发被测事件)
Then(则) assert(断言,验证结果)