text詹金斯最佳实践(代码片段)

author author     2022-11-30     556

关键词:

Jenkins Best Practices
https://en.wikipedia.org/wiki/Continuous_integration<- Read this!
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Best+Practices
http://www.slideshare.net/andrewbayer/7-habits-of-highly-effective-jenkins-users
Set up version control of job configurations
Keep jobs simple! Don't put a ton of bash in each job. If a job needs to do something complex, put it in a script in GitHub and check it out as needed.
Use templated builders to simplify common tasks
Keep all scripts in version control - avoid running scripts that live on the Jenkins server filesystem
Don't install unnecessary plugins - plugins are often written by third parties and can interact with each other in strange ways
Use LDAP authentication if possible for traceability - avoid anonymous access
If possible, set up user/group roles so that only the people who need access to the internals of Jenkins have access
Backup artifacts
Keep Jenkins up to date! Out of date installations tend to rot.
Tie jobs into Sonar to track code quality
Commit often! It's easier to collaborate on code when everyone is constantly integrating their changes.
Job names in Jenkins should not use spaces - directories are created for each job, and some tools don't support directories with spaces 
You can enforce this with the Restrict Project Naming global configuration using the pattern \S*
Set up a Jenkins display where everyone can see when your jobs are failing
Guy's Favorite Jenkins Plugins
Doony: Not quite a plugin, but it's a set of easy-to-install UI improvements for Jenkins. http://doony.org/
AnsiColor: Colorized console logs.
Build Monitor Plugin: Pretty live job status monitor. 
Build Trigger Badge Plugin: At a glance, see why each build was triggered - an upstream job, a manual trigger, an SCM trigger, etc.
Console Tail Plugin: See the last n lines of the latest build on a job's main page. Find out why your build failed without digging through logs.
embeddable-build-status: Show your build status with a live icon you can embed in your GitHub readme.
Jenkins disk-usage plugin: Easily keep track of your disk space usage on the Jenkins master.
Jenkins Jabber notifier plugin: Notify chatrooms and users of build failures.
Jenkins Workspace Cleanup Plugin: Delete your workspace before or after builds. Ensure a fresh build every time.
Monitoring: Track Jenkins master and slave performance. This is crucial when your Jenkins installation starts acting funny and you want to know why.
Naginator: Automatically re-run failed builds, in case they failed due to an environmental issue.
ShiningPanda Plugin: Creates Python virtualenvs for you to work in.
Template Project plugin: Use jobs as templates for other jobs. Lets you easily manage multiple jobs that share a similar configuration.
Timestamper: Timestamp your console logs.
SCM Sync Configuration Plugin: Sync your Jenkins configuration files (which are mostly XML) to GitHub. Version control everything.
Jenkins Administration
If you need to restart Jenkins, go to /safeRestart or /restart
If this doesn't work, you'll need to SSH into Jenkins and run sudo service jenkins restart
To update Jenkins, run sudo yum update jenkins
If you install plugins, do it one at a time and restart Jenkins after each plugin, then go into a few configuration menus and run a few jobs to make sure nothing is broken. Installing Jenkins plugins is a bit risky and it's best avoided unless you have a really good reason to do it.
We're using the latest LTS Jenkins version. https://wiki.jenkins-ci.org/display/JENKINS/LTS+Release+Line
The Jenkins home directory is /var/lib/jenkins.
Don't disable the Maven plugin. Jenkins won't start up. If you do disable it by accident, re-enable it with sudo rm /var/lib/jenkins/plugins/maven-plugin.jpi.disabled
If you accidentally lock everyone out of Jenkins due to incorrect security settings, disable global security in /var/lib/jenkins/config.xml

text最佳rspec实践(代码片段)

查看详情

text服务化最佳实践(代码片段)

查看详情

text詹金斯(代码片段)

查看详情

jquery编程的标准写法和最佳实践(jquery代码规范)(代码片段)

jQuery的加载1、我们经常用CDN来加载网页,我之前的文章中也多次提及,点击查看使用CDN的好处,<scripttype="text/javascript"src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><script>window.jQuery||docum 查看详情

javascript最佳实践(代码片段)

查看详情

markdowndevops最佳实践(代码片段)

查看详情

textlaravel最佳实践(代码片段)

查看详情

csscss最佳实践(代码片段)

查看详情

markdownfirebasefirestore最佳实践(代码片段)

查看详情

textrest最佳实践(代码片段)

查看详情

web最佳实践阅读总结(代码片段)

介绍最近开始刷一些书和题,此系列是介绍在读Web最佳实践的一些收获和体会。web前端发展现状存在问题:代码组织混乱代码格式的问题突出页面布局随意网站整体性能差,没有意识到应用诸如缓存,动态加载,脚本压缩,图片... 查看详情

markdownshell脚本最佳实践(代码片段)

查看详情

markdownvuejs最佳实践指南(代码片段)

查看详情

制作容器镜像的最佳实践(代码片段)

...的关于镜像制作的相关文章总结出来的.包括通用的容器最佳实践,java,nginx,python容器最佳实践.最佳实践的目的一方面保证镜像是可复用的,提升DevOps效率,另一方面是为了提高安全性.希望对各位有所帮助.本文分为四部分内容,分别... 查看详情

activity的最佳实践(代码片段)

文章目录Activity的最佳实践知晓当前是在哪一个Activiy随时随地退出程序启动Activity的最佳写法Activity的最佳实践知晓当前是在哪一个Activiy创建一个BaseActivity类,继承AppCompatActivity类.重写onCreate方法openclassBaseActivity:AppCompatActivity()overr... 查看详情

markdown表单设计最佳实践(代码片段)

查看详情

markdownspringboot整合hbase最佳实践(代码片段)

查看详情

javascript道具作为国家最佳实践(代码片段)

查看详情