From a9237e795c12c9bd4ede660e5dc700bf0d1f6eda Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Fri, 25 Mar 2022 17:20:09 +0000 Subject: [PATCH] Add some debugging to see why publishing is not working properly --- publish/do.groovy | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/publish/do.groovy b/publish/do.groovy index 8e302d8..555ce1d 100644 --- a/publish/do.groovy +++ b/publish/do.groovy @@ -90,8 +90,14 @@ def publish(hostedftpsiteinfo, String customer, String finalreleaserepofolder = def String ftproot = "${hostedftpsiteinfo.workingdirectory}${customer}" dir(finalreleaserepofolder) { - summaryappend("FTP operations: Transferring to ${ftproot}") + echo "Listing contents of what is going to be sent: (${finalreleaserepofolder})" sh """#!/bin/bash + ls -lsRa . + """ + summaryappend("FTP operations: Transferring to ${ftproot}") + echo "Executing: ncftpput -u ${hostedftpsiteinfo.username} -p ${hostedftpsiteinfo.password} -R ${hostedftpsiteinfo.url} \"${ftproot}\" ." + sh """#!/bin/bash + ls -lsRa . ncftpput -u ${hostedftpsiteinfo.username} -p ${hostedftpsiteinfo.password} -R ${hostedftpsiteinfo.url} "${ftproot}" . """ summaryappend(", Transferred ")