Fix email notification
parent
d5f0f7b52c
commit
4c9a511c1a
37
manifest.jps
37
manifest.jps
|
@ -55,7 +55,21 @@ actions:
|
||||||
user: root
|
user: root
|
||||||
- if ("${response.exitStatus}" != "0"):
|
- if ("${response.exitStatus}" != "0"):
|
||||||
return: sftpError
|
return: sftpError
|
||||||
- return: sftpSuccess
|
- return {
|
||||||
|
'result': 'success',
|
||||||
|
'message': 'Connection Details\n\n' +
|
||||||
|
'SFTP Host: ' + '${globals.sftpHost}' + '\n\n' +
|
||||||
|
'Port: ' + '${globals.sftpPort}' + '\n\n\n' +
|
||||||
|
'Login Credentials\n\n' +
|
||||||
|
'Username: ' + '${globals.username}' + '\n\n' +
|
||||||
|
'Password: ' + '${globals.password}',
|
||||||
|
'email': 'Connection Details' +
|
||||||
|
'SFTP Host: ' + '${globals.sftpHost}' + '\n' +
|
||||||
|
'Port: ' + '${globals.sftpPort}' + '\n\n' +
|
||||||
|
'Login Credentials' +
|
||||||
|
'Username: ' + '${globals.username}' + '\n' +
|
||||||
|
'Password: ' + '${globals.password}'
|
||||||
|
}
|
||||||
|
|
||||||
responses:
|
responses:
|
||||||
installSuccess:
|
installSuccess:
|
||||||
|
@ -64,27 +78,6 @@ responses:
|
||||||
sftpError:
|
sftpError:
|
||||||
type: error
|
type: error
|
||||||
message: "Failed to add SFTP user. Please check the server logs for more details."
|
message: "Failed to add SFTP user. Please check the server logs for more details."
|
||||||
sftpSuccess:
|
|
||||||
type: success
|
|
||||||
email: |-
|
|
||||||
Connection Details<br><br>
|
|
||||||
SFTP Host: ${globals.sftpHost}<br><br>
|
|
||||||
Port: ${globals.sftpPort}<br>
|
|
||||||
<br><br>
|
|
||||||
Login Credentials<br>
|
|
||||||
Username: ${globals.username}<br><br>
|
|
||||||
Password: ${globals.password}
|
|
||||||
message:
|
|
||||||
en: |-
|
|
||||||
Connection Details
|
|
||||||
SFTP Host: ${globals.sftpHost}
|
|
||||||
|
|
||||||
Port: ${globals.sftpPort}
|
|
||||||
|
|
||||||
Login Credentials
|
|
||||||
Username: ${globals.username}
|
|
||||||
|
|
||||||
Password: ${globals.password}
|
|
||||||
|
|
||||||
buttons:
|
buttons:
|
||||||
- settings: sfpform
|
- settings: sfpform
|
||||||
|
|
Loading…
Reference in New Issue