Debug sha/tags table
This commit is contained in:
parent
ab4165ebc0
commit
8aeb9a930b
1 changed files with 26 additions and 12 deletions
|
|
@ -170,14 +170,28 @@ def parseproductrepo(LinkedHashMap<String, ProductParsed> productcollection,
|
|||
String productreleasefolder) {
|
||||
dir(productreleasefolder) {
|
||||
deleteDir()
|
||||
sh """#!/bin/bash
|
||||
git init
|
||||
git config remote.origin.url ${productrepo}
|
||||
git config advice.detachedHead false
|
||||
git sparse-checkout init
|
||||
git sparse-checkout set meta/*
|
||||
git pull -t
|
||||
"""
|
||||
def returnstatus = sh(script: """#!/bin/bash
|
||||
git init
|
||||
if [ \$? -ne 0 ]; then exit 1; fi
|
||||
git config remote.origin.url ${productrepo}
|
||||
if [ \$? -ne 0 ]; then exit 1; fi
|
||||
git config advice.detachedHead false
|
||||
if [ \$? -ne 0 ]; then exit 1; fi
|
||||
git sparse-checkout init
|
||||
if [ \$? -ne 0 ]; then exit 1; fi
|
||||
git sparse-checkout set meta/*
|
||||
if [ \$? -ne 0 ]; then exit 1; fi
|
||||
git pull -t
|
||||
if [ \$? -ne 0 ]; then exit 1; fi
|
||||
""",
|
||||
returnStatus: true)
|
||||
if (returnstatus > 0) {
|
||||
dir('meta') {
|
||||
deleteDir()
|
||||
}
|
||||
echo "Couldn't clone repository: ${productrepo} correctly"
|
||||
return
|
||||
}
|
||||
}
|
||||
def LinkedHashMap<String, ArrayList<String>> shatagmap = gh.getremoteshatagmap(productrepo)
|
||||
def String productvariant
|
||||
|
|
@ -185,10 +199,10 @@ def parseproductrepo(LinkedHashMap<String, ProductParsed> productcollection,
|
|||
shatagmap.each { sha, tags ->
|
||||
//echo "Sha: ${sha} has tags: ${tags}"
|
||||
dir(productreleasefolder) {
|
||||
def returnstatus = sh( script: """#!/bin/bash
|
||||
git checkout ${sha}
|
||||
""",
|
||||
returnStatus: true)
|
||||
def returnstatus = sh(script: """#!/bin/bash
|
||||
git checkout ${sha}
|
||||
""",
|
||||
returnStatus: true)
|
||||
if (returnstatus > 0) {
|
||||
dir('meta') {
|
||||
deleteDir()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue