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:
- create node in jenkins local linux server. (if note created)
- in jenkins job configuration use node under "restrict project can run"
- 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
Post a Comment