Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
e7e9b9e2
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,发现更多精彩内容 >>
提交
e7e9b9e2
编写于
1月 30, 2011
作者:
K
Kohsuke Kawaguchi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
renaming MSI package
上级
8a1a8828
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
27 addition
and
27 deletion
+27
-27
msi/build-on-hudson.sh
msi/build-on-hudson.sh
+4
-4
msi/build.sh
msi/build.sh
+7
-7
msi/hudson.wxs
msi/hudson.wxs
+13
-13
msi/remote-execute.sh
msi/remote-execute.sh
+2
-2
msi/sign.js
msi/sign.js
+1
-1
未找到文件。
msi/build-on-hudson.sh
浏览文件 @
e7e9b9e2
#!/bin/bash -ex
if
[
!
-e
"
$1
"
]
;
then
echo
"Usage: build-on-
hudson
path/to/war"
echo
"Usage: build-on-
jenkins
path/to/war"
exit
1
fi
if
[
"
$HUDSON_URL
"
==
""
]
;
then
export
HUDSON_URL
=
http://hudson.sfbay/
fi
tar
cvzf bundle.tgz FindJava.java build.sh
hudson
.wxs
java
-jar
hudson-cli.jar dist-fork
-z
bundle.tgz
-f
hudson.war
=
"
$1
"
-l
windows
-Z
result.tgz bash
-ex
build.sh hudson
.war
tar
cvzf bundle.tgz FindJava.java build.sh
jenkins
.wxs
java
-jar
jenkins-cli.jar dist-fork
-z
bundle.tgz
-f
jenkins.war
=
"
$1
"
-l
windows
-Z
result.tgz bash
-ex
build.sh jenkins
.war
# hack until we fix distfork to avoid pointless intermediate directory
rm
-rf
distfork
*
tar
xvzf result.tgz
mv
distfork
*
/
hudson
-
*
.msi
.
mv
distfork
*
/
jenkins
-
*
.msi
.
msi/build.sh
浏览文件 @
e7e9b9e2
...
...
@@ -3,17 +3,17 @@ export PATH=~/tools/native/wix:$PATH
war
=
"
$1
"
if
[
!
-e
"
$war
"
]
;
then
echo
"build.sh path/to/
hudson
.war"
echo
"build.sh path/to/
jenkins
.war"
exit
1
fi
rm
-rf
tmp
||
true
mkdir
tmp
||
true
unzip
-p
"
$war
"
'WEB-INF/lib/
hudson
-core-*.jar'
>
tmp/core.jar
unzip
-p
tmp/core.jar windows-service/
hudson.exe
>
tmp/hudson
.exe
unzip
-p
tmp/core.jar windows-service/
hudson.xml
>
tmp/hudson
.xm_
unzip
-p
"
$war
"
'WEB-INF/lib/
jenkins
-core-*.jar'
>
tmp/core.jar
unzip
-p
tmp/core.jar windows-service/
jenkins.exe
>
tmp/jenkins
.exe
unzip
-p
tmp/core.jar windows-service/
jenkins.xml
>
tmp/jenkins
.xm_
# replace executable name to the bundled JRE
sed
-e
's|executable.*|executable>%BASE%\\jre\\bin\\java</executable>|'
< tmp/
hudson.xm_
>
tmp/hudson
.xml
sed
-e
's|executable.*|executable>%BASE%\\jre\\bin\\java</executable>|'
< tmp/
jenkins.xm_
>
tmp/jenkins
.xml
# capture JRE
javac FindJava.java
...
...
@@ -25,9 +25,9 @@ heat dir "$JREDIR" -o jre.wxs -sfrag -sreg -nologo -srd -gg -cg JreComponents -d
v
=
$(
unzip
-p
"
$war
"
META-INF/MANIFEST.MF |
grep
Implementation-Version |
cut
-d
' '
-f2
|
tr
-d
'\r'
)
echo
version
=
$v
candle
-dVERSION
=
$v
-dJreDir
=
"
$JREDIR
"
-dWAR
=
"
$war
"
-nologo
-ext
WixUIExtension
-ext
WixUtilExtension
hudson
.wxs jre.wxs
candle
-dVERSION
=
$v
-dJreDir
=
"
$JREDIR
"
-dWAR
=
"
$war
"
-nologo
-ext
WixUIExtension
-ext
WixUtilExtension
jenkins
.wxs jre.wxs
# '-sval' skips validation. without this, light somehow doesn't work on automated build environment
light
-o
hudson-
$v
.msi
-sval
-nologo
-dcl
:high
-ext
WixUIExtension
-ext
WixUtilExtension hudson
.wixobj jre.wixobj
light
-o
jenkins-
$v
.msi
-sval
-nologo
-dcl
:high
-ext
WixUIExtension
-ext
WixUtilExtension jenkins
.wixobj jre.wixobj
# avoid bringing back files that we don't care
rm
-rf
tmp
*
.class
*
.wixpdb
*
.wixobj
msi/hudson.wxs
浏览文件 @
e7e9b9e2
<?xml version="1.0"?>
<Wix
xmlns=
'http://schemas.microsoft.com/wix/2006/wi'
>
<Product
Name=
'
Hudson
$(var.VERSION)'
Id=
'*'
UpgradeCode=
'ca304bcd-a9a4-4178-8fac-e0505b1e05f3'
Language=
'1033'
Codepage=
'1252'
Version=
'0.$(var.VERSION).0'
Manufacturer=
'
Hudson
project'
>
<Product
Name=
'
Jenkins
$(var.VERSION)'
Id=
'*'
UpgradeCode=
'ca304bcd-a9a4-4178-8fac-e0505b1e05f3'
Language=
'1033'
Codepage=
'1252'
Version=
'0.$(var.VERSION).0'
Manufacturer=
'
Jenkins
project'
>
<Package
Id=
'*'
Keywords=
'Installer'
Description=
"
Hudson
"
<Package
Id=
'*'
Keywords=
'Installer'
Description=
"
Jenkins
"
Comments=
'Continuous Integration Server'
InstallerVersion=
'100'
Compressed=
'yes'
SummaryCodepage=
'1252'
/>
<Media
Id=
'1'
Cabinet=
'
hudson
.cab'
EmbedCab=
'yes'
/>
<Media
Id=
'1'
Cabinet=
'
jenkins
.cab'
EmbedCab=
'yes'
/>
<Directory
Id=
'TARGETDIR'
Name=
'SourceDir'
>
<Directory
Id=
'ProgramFilesFolder'
Name=
'PFiles'
>
<Directory
Id=
'
HudsonDir'
Name=
'Hudson
'
FileSource=
"."
>
<Directory
Id=
'
JenkinsDir'
Name=
'Jenkins
'
FileSource=
"."
>
<Directory
Id=
'JreDir'
Name=
'jre'
/>
<Component
Id=
'Main'
Guid=
'8fd00c9c-e018-46d6-9135-67696ea0bcbf'
>
<File
Name=
"
hudson.exe"
Source=
'tmp/hudson
.exe'
KeyPath=
'yes'
/>
<File
Name=
"
hudson.xml"
Source=
'tmp/hudson
.xml'
DiskId=
'1'
/>
<File
Name=
"
hudson
.war"
Source=
'$(var.WAR)'
DiskId=
'1'
/>
<ServiceInstall
Id=
"
Hudson
Service"
Name=
"
Hudson
"
DisplayName=
"
Hudson
"
<File
Name=
"
jenkins.exe"
Source=
'tmp/jenkins
.exe'
KeyPath=
'yes'
/>
<File
Name=
"
jenkins.xml"
Source=
'tmp/jenkins
.xml'
DiskId=
'1'
/>
<File
Name=
"
jenkins
.war"
Source=
'$(var.WAR)'
DiskId=
'1'
/>
<ServiceInstall
Id=
"
Jenkins
Service"
Name=
"
Jenkins
"
DisplayName=
"
Jenkins
"
Type=
"ownProcess"
Start=
"auto"
ErrorControl=
"normal"
Description=
"
Hudson
Continuous Integration Server"
Description=
"
Jenkins
Continuous Integration Server"
Account=
"[SERVICEACCOUNT]"
Password=
"[SERVICEPASSWORD]"
/>
<ServiceControl
Id=
"Control
HudsonService"
Name=
"Hudson
"
Start=
"install"
Stop=
"both"
Wait=
"yes"
Remove=
"uninstall"
/>
<ServiceControl
Id=
"Control
JenkinsService"
Name=
"Jenkins
"
Start=
"install"
Stop=
"both"
Wait=
"yes"
Remove=
"uninstall"
/>
</Component>
</Directory>
</Directory>
...
...
msi/remote-execute.sh
浏览文件 @
e7e9b9e2
#!/bin/bash -ex
tar
cvzf send.tgz FindJava.java build.sh
hudson
.wxs
java
-jar
hudson-cli.jar dist-fork
-z
send.tgz
-l
windows
-f
hudson.war
=
"
$1
"
-Z
result.tgz bash build.sh hudson
.war
tar
cvzf send.tgz FindJava.java build.sh
jenkins
.wxs
java
-jar
jenkins-cli.jar dist-fork
-z
send.tgz
-l
windows
-f
jenkins.war
=
"
$1
"
-Z
result.tgz bash build.sh jenkins
.war
msi/sign.js
浏览文件 @
e7e9b9e2
...
...
@@ -8,5 +8,5 @@ var args = WScript.Arguments;
signer
.
Load
(
args
(
1
));
sc
.
FileName
=
args
(
0
);
sc
.
Description
=
args
(
2
);
sc
.
DescriptionURL
=
"
http://
hudson
-ci.org/
"
;
sc
.
DescriptionURL
=
"
http://
jenkins
-ci.org/
"
;
sc
.
Sign
(
signer
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录