cpkg: fix random failure with GIT_ASKPASS script
This commit is contained in:
parent
0bef6cf450
commit
63bb0dcf08
|
@ -94,7 +94,6 @@ def call(Map params = [:]) {
|
||||||
def randomUUID = UUID.randomUUID().toString()
|
def randomUUID = UUID.randomUUID().toString()
|
||||||
def tmpAskPassScript = pwd(tmp:true) + "/${randomUUID}"
|
def tmpAskPassScript = pwd(tmp:true) + "/${randomUUID}"
|
||||||
try {
|
try {
|
||||||
node {
|
|
||||||
writeFile(
|
writeFile(
|
||||||
file: tmpAskPassScript,
|
file: tmpAskPassScript,
|
||||||
text: '''
|
text: '''
|
||||||
|
@ -105,7 +104,6 @@ def call(Map params = [:]) {
|
||||||
esac
|
esac
|
||||||
'''
|
'''
|
||||||
)
|
)
|
||||||
}
|
|
||||||
sh(script: "git config user.email '${gitEmail}'")
|
sh(script: "git config user.email '${gitEmail}'")
|
||||||
sh(script: "git config user.name '${gitUsername}'")
|
sh(script: "git config user.name '${gitUsername}'")
|
||||||
sh(script: "chmod +x '${tmpAskPassScript}'")
|
sh(script: "chmod +x '${tmpAskPassScript}'")
|
||||||
|
|
Loading…
Reference in New Issue