jenkinsci / jenkinsci/postbuild-task-plugin

[JENKINS-20157] Start program via ssh in Jenkins and using it in Jenkins build

Open
#48 0 comments 0 reactions 0 assignees View on GitHub
component:postbuild-task-plugin component:prereq-buildstep-plugin component:ssh-plugin imported-jira-issue jira-type:task priority:major resolution:unresolved
Dominant language
Java
Stars
8
Forks
19
Avg merge
38m
Merged PRs (30d)
1

Description

Hello people.

I'm using Jenkins as CI server and I need to run some performance test using Jmeter. I've setup the plugin and configured my workspace and everything works ok, but I have to do some steps manually and I want a bit more of "automation".

Currently i have some small programs in a remote server. These programs make some specific validations, for instance (just to explain): validates e-mail addresses, phone numbers, etc. So, before I run the build in jenkins, I have to manually start the program (file.sh) I want: I have to use putty (or any othe ssh client) to conect to the server and then run, for instance, the command

./email_validation.sh

And the Jmeter test runs in a correct way, and when the test is done I have to manually "shut down" the program I started. But what I want is trying to start the program I need in Jenkins configuration (not manually outside Jenkins, but in "execute shell" or "execute remote shell using ssh" build step).

I have tried to start it, but it get stuck, because when Jenkins build finds the command

./email_validation.sh

the build stops, it waits for the command to finish and then it will continue the other build steps, but obviously, I need this step not to finish until the test is executed.

Is there a way to achieve this? Thanks

---
Originally reported by acordinz, imported from: Start program via ssh in Jenkins and using it in Jenkins build


  • status: Open
  • priority: Major
  • component(s): postbuild-task-plugin, prereq-buildstep-plugin, ssh-plugin
  • label(s): build, ssh
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251223-222157

Raw content of original issue

Hello people.

I'm using Jenkins as CI server and I need to run some performance test using Jmeter. I've setup the plugin and configured my workspace and everything works ok, but I have to do some steps manually and I want a bit more of "automation".

Currently i have some small programs in a remote server. These programs make some specific validations, for instance (just to explain): validates e-mail addresses, phone numbers, etc. So, before I run the build in jenkins, I have to manually start the program (file.sh) I want: I have to use putty (or any othe ssh client) to conect to the server and then run, for instance, the command

./email_validation.sh

And the Jmeter test runs in a correct way, and when the test is done I have to manually "shut down" the program I started. But what I want is trying to start the program I need in Jenkins configuration (not manually outside Jenkins, but in "execute shell" or "execute remote shell using ssh" build step).

I have tried to start it, but it get stuck, because when Jenkins build finds the command

./email_validation.sh

the build stops, it waits for the command to finish and then it will continue the other build steps, but obviously, I need this step not to finish until the test is executed.

Is there a way to achieve this? Thanks

  • environment: Ubuntu Server 11.04, Jenkins Version 1.480.3

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.