Hello
Can someone explain to me how to add natasja to the ssh part so I can finally solve this one.
Jenkins is very slow . Anyone can explain why ?
Hello
Can someone explain to me how to add natasja to the ssh part so I can finally solve this one.
Jenkins is very slow . Anyone can explain why ?
Can you give us the Task Number and Level please?
Level 1 , task 5 of the Jenkins path
Configure Jenkins Job for Package Installation
After you install the parameter plugin the rest can be done in bash. What part are you stuck on? You can use sshpass
with ssh
to run an inline script which runs yum
as root
using sudo
.
O, Im stuck how I can tell Jenkins how to make a ssh connnection to the storage server.
I thought that needed to do in Jenkins somehow and seen it somewhere
You can do it in Jenkins using a plugin, or you can do it all in bash.
oke
I tried it with Jenkins and did this :
but the build failed with this :
Started by user admin
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/install-packages
[SSH] script:
PACKAGE="httpd"
sudo yum install $PACKAGE
[SSH] executing...
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
[SSH] completed
[SSH] exit-status: 1
Build step 'Execute shell script on remote host using ssh' marked build as failure
Finished: FAILURE
The error tells you what to do. Run sudo
with the -S
parameter. Before that pipe the output of echo <password>
to the sudo yum
command.
exact line would be “echo ‘your_password’ | sudo -S yum install -y $PACKAGE”