hudson

Jenkins build after mercurial commit

筅森魡賤 提交于 2020-07-15 03:44:04
问题 I've been working on this project for about a week now and I've been searching for 2 days without any clear explanation online. For a school assignment, we need to set up a buildserver with the following programs: Maven, as our build tool. Mercurial as our versioning system. Java (JRE), javac and javadoc. JUnit for unit testing. Jenkins (with JDepend plugin). We need to create 3 jobs, and 1 of those jobs is: Every time the (local) repository of Mercurial gets edited, a build needs to start.

Jenkins build after mercurial commit

左心房为你撑大大i 提交于 2020-07-15 03:44:00
问题 I've been working on this project for about a week now and I've been searching for 2 days without any clear explanation online. For a school assignment, we need to set up a buildserver with the following programs: Maven, as our build tool. Mercurial as our versioning system. Java (JRE), javac and javadoc. JUnit for unit testing. Jenkins (with JDepend plugin). We need to create 3 jobs, and 1 of those jobs is: Every time the (local) repository of Mercurial gets edited, a build needs to start.

Jenkins build after mercurial commit

与世无争的帅哥 提交于 2020-07-15 03:43:00
问题 I've been working on this project for about a week now and I've been searching for 2 days without any clear explanation online. For a school assignment, we need to set up a buildserver with the following programs: Maven, as our build tool. Mercurial as our versioning system. Java (JRE), javac and javadoc. JUnit for unit testing. Jenkins (with JDepend plugin). We need to create 3 jobs, and 1 of those jobs is: Every time the (local) repository of Mercurial gets edited, a build needs to start.

首次启动Jenkins加载很慢的解决办法

旧时模样 提交于 2020-05-09 08:18:06
安装好Jenkins之后,在浏览器地址栏里输入 ip+端口/jenkins 准备进入Jenkins的后台管理系统,这时页面一直卡在那里不动了,页面一直显示 Please wait while Jenkins is getting ready to work ... Your browser will reload automatically when Jenkins is ready. 出现这个情况时,是因为Jenkins的默认更新镜像用的国外的镜像,把更新镜像改成国内的即可。 首先打开Jenkins的安装目录, 比如我是Linux系统 安装在 /usr/local/tomcat_Jenkins/下面打开这个目录,然后打开hudson.model.UpdateCenter.xml 这个配置文件; 将<url> https://updates.jenkins.io/update-center.json</url> ; 修改成<url> http://mirror.xmission.com/jenkins/updates/update-center.json</url> ; 之后重启Jenkins服务,再重新刷新Jenkins启动页面即可。 更改后的配置如下: <?xml version='1.1' encoding='UTF-8'?> <sites> <site> <id

Jenkins管理插件(备份插件)

主宰稳场 提交于 2020-05-08 01:57:01
Jenkins管理插件 为了让所有的插件在 Jenkins 内可用,所有插件的列表可以访问链接 − https://wiki.jenkins-ci.org/display/JENKINS/Plugins 我们已经看到很多安装插件的实例,让我们来看看其他一些维护任务的插件 卸载插件 要卸载插件,转到Manage Jenkins → Manage plugins。点击安装标签。有些插件有卸载选项。您可以点击这些按钮来卸载插件。卸载后重新启动 Jenkins 实例。 安装插件的另一个版本 有时,你可能需要安装插件的旧版本,在这种情况下,可以从 Jenkins 网站相关的插件页面下载插件。然后使用上传选项来手动上传插件。 Jenkins备份插件 Jenkins 有一个备份插件,它可以用来与Jenkins备份重要的配置设置。按照下面给出有一个适当的备份所需的步骤。 第1步 - 点击Manage Jenkins,然后选择“Manage Plugins”选项。 第2步 - 在可用选项卡上,搜索“Backup Plugin”。点击“Install without Restart”。完成后,重新启动Jenkins实例 第3步 - 现在,当你转到Manage Jenkins,向下滚动,将会看到“Backup Manager”作为一个选项。点击该选项。 第4步 - 点击设置(Setup)。 第5步 -

jenkins rpm包安装

筅森魡賤 提交于 2020-05-05 10:14:07
一、环境说明 jenkins依赖java环境,启动jenkins要安装jdk 1.此次安装采用rpm包方式安装,版本为jenkins-2.234-1.1 2.jdk版本为: jdk-8u51-linux-x64.tar.gz 3.jenkins要结合mvn用,版本为:apache-maven-3.6.3-bin.tar.gz 4.jenkins安装完成后以root方式启动 5.服务器系统为centos7.6 X86_64位,关闭selinx ,开启iptables 二、jenkins具体安装过程 2.1安装jdk [root@jenkins soft]# tar xf /data/soft/jdk-8u51-linux-x64.tar.gz -C /usr/local/ [root@jenkins soft]# cd /usr/local/ [root@jenkins local]# ln -sv jdk1.8.0_51 jdk "jdk" -> "jdk1.8.0_51" 2.2安装maven [root@jenkins ~]# tar xf /data/soft/apache-maven-3.6.3-bin.tar.gz -C /usr/local/ [root@jenkins ~]# ln -sv /usr/local/apache-maven-3.6.3 /usr

OS基础环境、JDK环境、jenkins.war等容器镜像构建

空扰寡人 提交于 2020-05-03 15:12:17
1.构建os基础镜像 1)制作适合自己的os镜像Dockerfile,注意Dockerfile文件名的首字母"D"必须要大写,否则构建时无法识别 [root@k8s centos7.6]# cat Dockerfile #基础镜像来源,事先在dockerhub下载centos:7.6.1810 FROM centos:7.6.1810 #镜像维护者 MAINTAINER zhaojiehe #配置yum源 RUN yum install wget -y&&rm -rf /etc/yum.repos.d/* && wget -O /etc/yum.repos.d/epel.repo \ http://mirrors.aliyun.com/repo/epel-7.repo&&wget -O /etc/yum.repos.d/CentOS7-Base-163.repo \ http://mirrors.163.com/.help/CentOS7-Base-163.repo #安装必要的包 RUN yum install vim iotop bc gcc gcc-c++ glibc glibc-devel pcre pcre-devel \ openssl openssl-devel zip unzip zlib-devel net-tools lrzsz tree ntpdate \

Jenkins基础系统之更换镜像源

◇◆丶佛笑我妖孽 提交于 2020-04-12 12:29:09
清华大学镜像地址: https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json 操作步骤: 进入jenkins系统管理 进入插件管理 点击高级,修改升级站点的地址为清华大学镜像地址 二、更换源配置 1. 关闭对 update-center.json 的安全检查 将下列属性添加到 Jenkins 启动参数 hudson.model.DownloadService.noSignatureCheck=true 例子1 Java 启动 java -Dhudson.model.DownloadService.noSignatureCheck= true -jar jenkins.war --httpPort= 9800 例子2 Docker 启动 docker run -- env JAVA_OPTS=-Dhudson.model.DownloadService.noSignatureCheck= true jenkins/jenkins 参考: - Features controlled by system properties - JENKINS-11598 2. 使用本站的 update-center.json 复制到 更新站点 URL 保存 https://jenkins-update.davidz

What URL will get the status code (result) of the last Jenkins job?

人盡茶涼 提交于 2020-04-08 08:54:52
问题 I am wondering if anyone knows what URL is required (as a GET or POST) that will get the status code (result) of the last Jenkins job (when the build# is not known by the client calling the GET request)? I just want to be able to detect if the result was RED or GREEN/BLUE . I have this code sample, but I need to adjust it so that it works for Jenkins, for this purpose (as stated above): public class Main { public static void main(String[] args) throws Exception { URL url = new URL("http:/

How can I write a Jenkins email-ext template to display test results like the standard test report

大憨熊 提交于 2020-04-05 07:42:17
问题 I have tweaked the standard jelly template to display the current test results in a table, however I really want to be able to display diffs as seen in Jenkins own test results page. For example: JUnit Tests: 0 failures (±0) , 1 skipped (+1) Package Duration Fail (diff) Skip (diff) Total (diff) foo.bar.baz 89 ms 0 0 1 +1 5 +2 回答1: Write a Groovy template for Email Ext plugin instead of Jelly template. In Groovy template you'll have access to Build object for your build. You can then call