Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some unexpected error occurred when executing shell script #3079

Closed
LeoLuo21 opened this issue Jul 29, 2022 · 1 comment
Closed

Some unexpected error occurred when executing shell script #3079

LeoLuo21 opened this issue Jul 29, 2022 · 1 comment

Comments

@LeoLuo21
Copy link

Service(s)

release.ci.jenkins.io

Summary

Build step 'Execute shell' marked build as failure

Reproduction steps

1.New Item
2.Select Freestyle project
3.Click Configure of the left bar in newly created project
4.Find out the build area, choose add execute shell
5.paste the following content

#!/bin/bash -xe
pid=`lsof -t -i:10001`
echo "pid=$pid"
if [ -n "$pid" ]; then
	kill -9 $pid
	echo "$pid has been killed."
fi

6.Click BuildNow
7.In Console Output: You will see

[jenkins-demo] $ /bin/bash -xe /tmp/jenkins6013219052354131704.sh
++ lsof -t -i:10001
+ pid=
Build step 'Execute shell' marked build as failure
Finished: FAILURE
@LeoLuo21 LeoLuo21 added the triage Incoming issues that need review label Jul 29, 2022
@dduportal
Copy link
Contributor

Hi @LeoLuo21 , thanks for reporting.

This issue tracker is scoped to the Jenkins Infrastructure as stated in README, so I'm going to close this issue as "not planned".

It looks like that you have an issue with your Jenkins instance instead: you should open a topic on the community forum at community.jenkins.io to get a broader community help, or open an issue on the officiale Jenkins bug tracker if it is a bug that you can describe with a reproduction case.

@dduportal dduportal closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2022
@dduportal dduportal added this to the infra-team-sync-2022-08-09 milestone Aug 8, 2022
@dduportal dduportal removed the triage Incoming issues that need review label Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants