I have two bulid configurations:

  1. Build.
  2. Deploy.

In Build configuration pointed artifacts ( http://prntscr.com/enws67 ). In Deploy configuration, the dist folder is taken and moved to the server using rsync (the bash script is already written: http://prntscr.com/enwtzr ).

(Before that, I created one Build Configuration in which a step for deployment was registered and running the script on the command line: C:\cygwin64\bin\bash.exe /cygdrive /c /cygwin64 /Home /Team /Startsync.bash )

The idea is that the rules are set on a configuration that generates artifacts ( Build ) and a configuration that consumes them ( Deploy ). Thus, one configuration can transfer other configuration files.

How to create an artifact dependency in a Deploy configuration? And write a rule for artifacts? Thanks you !

  • like the hard way you went. Edit Configuration Settings -> Dependencies -> Add new artifact dependency - Senior Pomidor
  • The idea is to share configurations for Build and Deploy - Gen Ts

1 answer 1

Build configuration build artifacts, at the end you pump them out and they are displayed in artifacts

2) in Deploy Edit Configuration Settings go to Edit Configuration Settings -> Dependencies -> Add new artifact dependency enter image description here

Depend on: set Build configuration

Artifacts rules: * write the rules

 +: one => . -: second 

+: says to include the one folder for downloading in the checkout.directory/ folder

-: - excludes the second folder

sign => refers to checkout.directory

more details on the link

  • Thank you very much ! - Gen Ts