3
내가 너무 많은 가능한 해결 방법을 시도해보십시오 이미 SSH 플러그인을 통한 게시 및과 문제를 가지고 있지만 작동하지 않는 찾을 수 없습니다젠킨스 - SSH 동안 게시 - EXEC : STDOUT/STDERR는 - bash는 : 서비스 : 명령
-
PTY에서
- 사용 간부
- 오두막 사용
- --login Bash를 이용한 (#를!는/usr/빈/ENV 강타)
Exec에서 스크립트
service monitoring-daemon stop
cd /home/push/monitoring/target
rm -rf Monitoring.jar
ls -la | grep Monitoring | grep -v grep | awk '{print $9}' | xargs -I file mv file Monitoring.jar
service monitoring-daemon start
콘솔 출력
10:26:25 SSH: EXEC: STDOUT/STDERR from command [service monitoring-daemon stop
10:26:25 cd /home/push/monitoring/target
10:26:25 rm -rf Monitoring.jar
10:26:25 ls -la | grep Monitoring | grep -v grep | awk '{print $9}' | xargs -I file mv file Monitoring.jar
10:26:25 service monitoring-daemon start] ...
10:26:25 SSH: EXEC: connected
10:26:25 bash: service: command not found
10:26:25 bash: line 4: service: command not found
10:26:25 SSH: EXEC: completed after 201 ms
10:26:25 SSH: Disconnecting configuration [*********] ...
10:26:25 ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [127]]
10:26:25 Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
10:26:25 [ANALYSIS-COLLECTOR] Computing warning deltas based on reference build #48
내 젠킨스는 기본 쉘 및 원격 또한 서버의 bash로 떠들썩한 파티를 사용하고 있습니다.
는# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
.bash_profile을
원격 서버의 .bashrc
# .bashrc
alias service='/sbin/service'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
원격 서버는 내가 부족 구성이나 단계의 조각이있다 ?