jenkinsci / jenkinsci/ssh2easy-plugin
int status = session.getExitStatus().intValue(); NullPointerException
- Dominant language
- Java
- Stars
- 10
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
### What feature do you want to see added?
####################################
execute commds=[cd e:
e:
echo "cd to hello portal dir"
cd E:\data\hello\portal
git pull
echo "start to git add "
git add .
git commit -m "xxxaaa"
exit 0
exit $?]failed !
java.lang.NullPointerException
at jenkins.plugins.ssh2easy.gssh.client.JenkinsSshClient.executeCommand(JenkinsSshClient.java:86)
at jenkins.plugins.ssh2easy.gssh.GsshCommandBuilder.perform(GsshCommandBuilder.java:68)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:806)
at hudson.model.Build$BuildExecution.build(Build.java:198)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:514)
at hudson.model.Run.execute(Run.java:1888)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:99)
at hudson.model.Executor.run(Executor.java:432)
ERROR: Build step failed with exception
java.lang.NullPointerException
at jenkins.plugins.ssh2easy.gssh.client.JenkinsSshClient.executeCommand(JenkinsSshClient.java:86)
Caused: jenkins.plugins.ssh2easy.gssh.GsshPluginException: [GSSH - SFTP] Exception execute commds=[cd e:
e:
echo "cd to hello portal dir"
cd E:\data\hello\portal
git pull
echo "start to git add "
git add .
git commit -m "xxxaaa"
exit 0
exit $?]failed !
at jenkins.plugins.ssh2easy.gssh.client.JenkinsSshClient.executeCommand(JenkinsSshClient.java:93)
at jenkins.plugins.ssh2easy.gssh.GsshCommandBuilder.perform(GsshCommandBuilder.java:68)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:806)
at hudson.model.Build$BuildExecution.build(Build.java:198)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:514)
at hudson.model.Run.execute(Run.java:1888)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:99)
at hudson.model.Executor.run(Executor.java:432)
Build step '远程执行命令' marked build as failure
[SSH] executing post build script:
Finished: FAILURE
### Upstream changes
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.