Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

jenkins store sh output in variable

script {
   GIT_COMMIT_EMAIL = sh (
        script: 'git --no-pager show -s --format='%ae'',
        returnStdout: true
    ).trim()
    echo "Git committer email: ${GIT_COMMIT_EMAIL}"
}
Comment

PREVIOUS NEXT
Code Example
Shell :: wsl2 taking much memory 
Shell :: how to install virtualbox in ubuntu 18.04 
Shell :: gh clone 
Shell :: bash: conda: command not found 
Shell :: Install Strimio on ubuntu 
Shell :: uninstall ros2 foxy 
Shell :: alpine apt-get not found 
Shell :: git blame 
Shell :: bash script to clean up log files in /var/log 
Shell :: undo git commit and keep changes 
Shell :: install yarn windows 
Shell :: node modules folder not getting ignore in git 
Shell :: win add to startup 
Shell :: sshd: no hostkeys available -- exiting. 
Shell :: git rm --cached settings.json 
Shell :: install sdl2 macos 
Shell :: install package in docker 
Shell :: get users shell 
Shell :: how to install onnx on jetson nano 
Shell :: batch escape character 
Shell :: ssh key 
Shell :: docker get image size before pull acr 
Shell :: Start and Enable Apache 
Shell :: macbook gestures stopped working 
Shell :: ssh permission denied publickey 
Shell :: change directory, files and sub-directories owner in linux 
Shell :: what is samba in linux 
Shell :: debian ssh authorized_keys 
Shell :: zoom is not open in ubutnu 
Shell :: linux create link to folder 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =