Hello, I'm new at Jenkins and want to know when you are configuring a new pipeline from SCM (GitHub in my case) how do you say to the pipeline the directory to make deploy? Inside the Jenkinsfile? Or in the pipeline configuration itself?
If I understand correctly, you can do that using series of shell commands. Just see the Build menu under Pipeline configure option, select "Execute Shell" option and change the directory and give commands to execute after pulling code from Git. No need to tinker with Jenkins file at all!
Well the point it's i want to put a Jenkinsfile inside the repository and when the pipeline is triggered i want to pull my changes to the directory when my application is running but i don't know when to specify this.
While creating new job, you can see an option called "Advanced Options". Select this, and under this option select Custom Workspace. This is what you need, I guess.
Rajkumar
Fullstack Developer.
If I understand correctly, you can do that using series of shell commands. Just see the Build menu under Pipeline configure option, select "Execute Shell" option and change the directory and give commands to execute after pulling code from Git. No need to tinker with Jenkins file at all!