mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
Create the manifest file at the end of the build when the output folder is in place (hence no folder creation is necessary).
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
d69f2ddda3
commit
2f6b6d3823
45
Jenkinsfile
vendored
45
Jenkinsfile
vendored
@ -200,10 +200,31 @@ node("${params.BUILD_ON_NODE}") {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Run checks') {
|
||||
if (params.SKIP_CHECKS) {
|
||||
println "Skipping initial checks on request."
|
||||
} else {
|
||||
|
||||
List<String> list = ["check-roaming.sh", "copyrightcheck/copyrightcheck.sh", "i18ncheck/i18ncheck.sh", "deadcheck/deadcheck.sh", "spellcheck/spellcheck.sh"]
|
||||
for (String item : list) {
|
||||
bat """
|
||||
cd ${env.WORKSPACE}\\xenadmin.git\\devtools
|
||||
sh "${item}"
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
bat """
|
||||
cd ${env.WORKSPACE}
|
||||
sh "xenadmin.git/mk/xenadmin-build.sh"
|
||||
"""
|
||||
}
|
||||
|
||||
stage('Create manifest') {
|
||||
GString manifestFile = "${env.WORKSPACE}\\output\\xenadmin-manifest.txt"
|
||||
File file = new File(manifestFile)
|
||||
file.getParentFile().mkdirs()
|
||||
|
||||
String branchInfo = (params.XC_BRANCH == 'master') ? 'trunk' : params.XC_BRANCH
|
||||
file << "@branch=${branchInfo}\n"
|
||||
@ -240,28 +261,6 @@ node("${params.BUILD_ON_NODE}") {
|
||||
file << readFile("${env.WORKSPACE}\\scratch\\dotnet-packages-manifest.txt").trim()
|
||||
}
|
||||
|
||||
stage('Run checks') {
|
||||
if (params.SKIP_CHECKS) {
|
||||
println "Skipping initial checks on request."
|
||||
} else {
|
||||
|
||||
List<String> list = ["check-roaming.sh", "copyrightcheck/copyrightcheck.sh", "i18ncheck/i18ncheck.sh", "deadcheck/deadcheck.sh", "spellcheck/spellcheck.sh"]
|
||||
for (String item : list) {
|
||||
bat """
|
||||
cd ${env.WORKSPACE}\\xenadmin.git\\devtools
|
||||
sh "${item}"
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
bat """
|
||||
cd ${env.WORKSPACE}
|
||||
sh "xenadmin.git/mk/xenadmin-build.sh"
|
||||
"""
|
||||
}
|
||||
|
||||
stage('Run tests') {
|
||||
|
||||
if (params.XC_BRANDING != 'citrix') {
|
||||
|
Loading…
Reference in New Issue
Block a user