Add some debugging to see why publishing is not working properly

This commit is contained in:
Dan Hawkins 2022-03-25 17:20:09 +00:00
commit a9237e795c

View file

@ -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 ")