P
P
plx496382021-05-09 15:44:25
git
plx49638, 2021-05-09 15:44:25

How to get sources from git using jenkins and save them to the working directory?

Hello.
I have a web server that hosts a website.
Development is carried out using git which is located on the same machine as the web-server (but in different directories).
I recently installed jenkins on the same machine.
But I can't figure out how to set it up so that it would take files from git (from the master branch) and deliver them to the project directory.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
BorLaze, 2021-05-09
@BorLaze

It seems that reptilians from the planet Nibiru sometimes look here, where there is no Google and never was.
I drove into the search setting jenkins - a wagon and a small cart of manuals of varying degrees of detail.
Here , for example, already for very small ones - even with pictures.
That's what really surprises me - how are you going to solve problems when coding, even if you cannot solve problems when installing / configuring software? Will you ask on this site too?

S
Sergey Utkin, 2021-05-13
@DerNitro

Git plugin + can be chained to dir for example:

dir("folder") {
    git branch: 'branch', url: 'url'
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question