Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
d44eef2c
J
jenkins
项目概览
xxadev
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d44eef2c
编写于
1月 31, 2011
作者:
K
Kohsuke Kawaguchi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Migrate the data files from Hudson.
上级
22f545e5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
55 addition
and
24 deletion
+55
-24
opensuse/SOURCES/jenkins.sysconfig.in
opensuse/SOURCES/jenkins.sysconfig.in
+2
-2
opensuse/SPECS/jenkins.spec
opensuse/SPECS/jenkins.spec
+25
-10
rpm/SOURCES/jenkins.sysconfig.in
rpm/SOURCES/jenkins.sysconfig.in
+2
-2
rpm/SPECS/jenkins.spec
rpm/SPECS/jenkins.spec
+26
-10
未找到文件。
opensuse/SOURCES/jenkins.sysconfig.in
浏览文件 @
d44eef2c
...
...
@@ -19,14 +19,14 @@ JENKINS_HOME="@@HOME@@"
JENKINS_JAVA_CMD=""
## Type: string
## Default: "
hudson
"
## Default: "
jenkins
"
## ServiceRestart: jenkins
#
# Unix user account that runs the Hudson daemon
# Be careful when you change this, as you need to update
# permissions of $JENKINS_HOME and /var/log/jenkins.
#
JENKINS_USER="
hudson
"
JENKINS_USER="
jenkins
"
## Type: string
## Default: "-Djava.awt.headless=true"
...
...
opensuse/SPECS/jenkins.spec
浏览文件 @
d44eef2c
...
...
@@ -2,7 +2,7 @@
# - how to add to the trusted service of the firewall?
%define _prefix %{_usr}/lib/jenkins
%define workdir %{_var}/lib/
hudson
%define workdir %{_var}/lib/
jenkins
Name: jenkins
Version: %{ver}
...
...
@@ -36,18 +36,18 @@ PreReq: /usr/sbin/groupadd /usr/sbin/useradd
BuildArch: noarch
%description
Hudson
monitors executions of repeated jobs, such as building a software
project or jobs run by cron. Among those things, current
Hudson
focuses on the
Jenkins
monitors executions of repeated jobs, such as building a software
project or jobs run by cron. Among those things, current
Jenkins
focuses on the
following two jobs:
- Building/testing software projects continuously, just like CruiseControl or
DamageControl. In a nutshell,
Hudson
provides an easy-to-use so-called
DamageControl. In a nutshell,
Jenkins
provides an easy-to-use so-called
continuous integration system, making it easier for developers to integrate
changes to the project, and making it easier for users to obtain a fresh
build. The automated, continuous build increases the productivity.
- Monitoring executions of externally-run jobs, such as cron jobs and procmail
jobs, even those that are run on a remote machine. For example, with cron,
all you receive is regular e-mails that capture the output, and it is up to
you to look at them diligently and notice when it broke.
Hudson
keeps those
you to look at them diligently and notice when it broke.
Jenkins
keeps those
outputs and makes it easy for you to notice when something is wrong.
...
...
@@ -82,14 +82,29 @@ rm -rf "%{buildroot}"
%__install -D -m0644 "%{SOURCE4}" "%{buildroot}/etc/zypp/repos.d/jenkins.repo"
%pre
/usr/sbin/groupadd -r
hudson
&>/dev/null || :
/usr/sbin/groupadd -r
jenkins
&>/dev/null || :
# SUSE version had -o here, but in Fedora -o isn't allowed without -u
/usr/sbin/useradd -g
hudson -s /bin/false -r -c "Hudson
Continuous Build server" \
-d "%{workdir}"
hudson
&>/dev/null || :
/usr/sbin/useradd -g
jenkins -s /bin/false -r -c "Jenkins
Continuous Build server" \
-d "%{workdir}"
jenkins
&>/dev/null || :
%post
/sbin/chkconfig --add jenkins
# If we have an old hudson install, rename it to jenkins
if test -d /var/lib/hudson; then
# leave a marker to indicate this came from Hudson.
# could be useful down the road
# This also ensures that the .??* wildcard matches something
touch /var/lib/hudson/.moving-hudson
mv -f /var/lib/hudson/* /var/lib/hudson/.??* /var/lib/jenkins
rmdir /var/lib/hudson
find /var/lib/jenkins -user hudson -exec chown jenkins {} + || true
fi
if test -d /var/run/hudson; then
mv -f /var/run/hudson/* /var/run/jenkins
rmdir /var/run/hudson
fi
%preun
if [ "$1" = 0 ] ; then
# if this is uninstallation as opposed to upgrade, delete the service
...
...
@@ -111,8 +126,8 @@ exit 0
%defattr(-,root,root)
%dir %{_prefix}
%{_prefix}/%{name}.war
%attr(0755,
hudson,hudson
) %dir %{workdir}
%attr(0750,
hudson,hudson
) /var/log/jenkins
%attr(0755,
jenkins,jenkins
) %dir %{workdir}
%attr(0750,
jenkins,jenkins
) /var/log/jenkins
%config /etc/logrotate.d/%{name}
%config /etc/init.d/%{name}
%config /etc/sysconfig/%{name}
...
...
rpm/SOURCES/jenkins.sysconfig.in
浏览文件 @
d44eef2c
...
...
@@ -19,14 +19,14 @@ JENKINS_HOME="@@HOME@@"
JENKINS_JAVA_CMD=""
## Type: string
## Default: "
hudson
"
## Default: "
jenkins
"
## ServiceRestart: jenkins
#
# Unix user account that runs the Jenkins daemon
# Be careful when you change this, as you need to update
# permissions of $JENKINS_HOME and /var/log/jenkins.
#
JENKINS_USER="
hudson
"
JENKINS_USER="
jenkins
"
## Type: string
## Default: "-Djava.awt.headless=true"
...
...
rpm/SPECS/jenkins.spec
浏览文件 @
d44eef2c
...
...
@@ -2,7 +2,7 @@
# - how to add to the trusted service of the firewall?
%define _prefix %{_usr}/lib/jenkins
%define workdir %{_var}/lib/
hudson
%define workdir %{_var}/lib/
jenkins
Name: jenkins
Version: %{ver}
...
...
@@ -40,18 +40,18 @@ PreReq: /usr/sbin/groupadd /usr/sbin/useradd
BuildArch: noarch
%description
Hudson
monitors executions of repeated jobs, such as building a software
project or jobs run by cron. Among those things, current
Hudson
focuses on the
Jenkins
monitors executions of repeated jobs, such as building a software
project or jobs run by cron. Among those things, current
Jenkins
focuses on the
following two jobs:
- Building/testing software projects continuously, just like CruiseControl or
DamageControl. In a nutshell,
Hudson
provides an easy-to-use so-called
DamageControl. In a nutshell,
Jenkins
provides an easy-to-use so-called
continuous integration system, making it easier for developers to integrate
changes to the project, and making it easier for users to obtain a fresh
build. The automated, continuous build increases the productivity.
- Monitoring executions of externally-run jobs, such as cron jobs and procmail
jobs, even those that are run on a remote machine. For example, with cron,
all you receive is regular e-mails that capture the output, and it is up to
you to look at them diligently and notice when it broke.
Hudson
keeps those
you to look at them diligently and notice when it broke.
Jenkins
keeps those
outputs and makes it easy for you to notice when something is wrong.
...
...
@@ -86,14 +86,30 @@ rm -rf "%{buildroot}"
%__install -D -m0644 "%{SOURCE4}" "%{buildroot}/etc/yum.repos.d/jenkins.repo"
%pre
/usr/sbin/groupadd -r
hudson
&>/dev/null || :
/usr/sbin/groupadd -r
jenkins
&>/dev/null || :
# SUSE version had -o here, but in Fedora -o isn't allowed without -u
/usr/sbin/useradd -g
hudson -s /bin/false -r -c "Hudson
Continuous Build server" \
-d "%{workdir}"
hudson
&>/dev/null || :
/usr/sbin/useradd -g
jenkins -s /bin/false -r -c "Jenkins
Continuous Build server" \
-d "%{workdir}"
jenkins
&>/dev/null || :
%post
/sbin/chkconfig --add jenkins
# If we have an old hudson install, rename it to jenkins
if test -d /var/lib/hudson; then
# leave a marker to indicate this came from Hudson.
# could be useful down the road
# This also ensures that the .??* wildcard matches something
touch /var/lib/hudson/.moving-hudson
mv -f /var/lib/hudson/* /var/lib/hudson/.??* /var/lib/jenkins
rmdir /var/lib/hudson
find /var/lib/jenkins -user hudson -exec chown jenkins {} + || true
fi
if test -d /var/run/hudson; then
mv -f /var/run/hudson/* /var/run/jenkins
rmdir /var/run/hudson
fi
%preun
if [ "$1" = 0 ] ; then
# if this is uninstallation as opposed to upgrade, delete the service
...
...
@@ -115,8 +131,8 @@ exit 0
%defattr(-,root,root)
%dir %{_prefix}
%{_prefix}/%{name}.war
%attr(0755,
hudson,hudson
) %dir %{workdir}
%attr(0750,
hudson,hudson
) /var/log/jenkins
%attr(0755,
jenkins,jenkins
) %dir %{workdir}
%attr(0750,
jenkins,jenkins
) /var/log/jenkins
%config /etc/logrotate.d/%{name}
%config /etc/init.d/%{name}
%config /etc/sysconfig/%{name}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录