通过SSH发布Jenkins返回空错误消息

时间:2016-07-12 15:24:15

标签: jenkins ssh

我们遇到了错误,但没有任何日志或错误消息可以帮助您进行重复操作:

SSH: Connecting from host [xxxxxxxx]
SSH: Connecting with configuration [test_p805] ...
SSH: Creating session: username [p805s1], hostname [xxxxxxxx], port [22]
SSH: Connecting session ...
SSH: Connected
SSH: Opening SFTP channel ...
SSH: SFTP channel open
SSH: Connecting SFTP channel ...
SSH: Connected
SSH: cd [/]
SSH: OK
SSH: cd [/]
SSH: OK
SSH: cd [correct/destination/path]
SSH: OK
SSH: Disconnecting configuration [test_p805] ...
ERROR: Exception when publishing, exception message [null]
Build step 'Send build artifacts over SSH' changed build result to UNSTABLE

我们有许多成功的工作使用相同的配置(test_p805)。对于此特定步骤,配置如下所示:

          <jenkins.plugins.publish__over__ssh.BapSshTransfer>
            <remoteDirectory>/correct/destination/path</remoteDirectory>
            <sourceFiles>${source_files}</sourceFiles>
            <excludes></excludes>
            <removePrefix></removePrefix>
            <remoteDirectorySDF>false</remoteDirectorySDF>
            <flatten>true</flatten>
            <cleanRemote>true</cleanRemote>
            <noDefaultExcludes>false</noDefaultExcludes>
            <makeEmptyDirs>false</makeEmptyDirs>
            <patternSeparator>[, ]+</patternSeparator>
            <execCommand></execCommand>
            <execTimeout>600000</execTimeout>
            <usePty>false</usePty>
          </jenkins.plugins.publish__over__ssh.BapSshTransfer>

其中$ {source_files}是一个应该拾取jar文件的模式:target\scala-2.10\*.jar,我已经确认jar位于工作区中的那个位置。

之前有人碰到过吗?

0 个答案:

没有答案