linux - Executing BuildScript on local server through Jenkins using SSH server -


i've configured job under jenkins building application automatically. due restrictions , access problem need build application on own server (linux) instead of building on jenkins server.in order i've written buildscript relies in server , when file executed initiates build process , required operations done , creates war file deployed. want invoke file(build script) jenkins build initiated on server through jenkins. i'm trying using send files or execute commands on ssh before build starts under build environment of job somehow i'm getting result.

does has idea regarding this?. if have plz share me.

please follow below steps:

  1. create node in jenkins local linux server. (if note created)
  2. in jenkins job configuration use node under "restrict project can run"
  3. under "build" section use execute shell add build step dropdown.

now every command or script mentioned under execute shell run on configured node (which own local server). can use jenkins workspace if want using ${workspace} variable.

thanks


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -