DelphiFeeds.com

  • Dashboard
  • Popular Stories
  • Trending Stories
  • Feeds
  • Login
Trending now

Quickly Learn How To Fetch A Table Using FireDAC In This IFDPhysCommand Delphi Sample

Tutorial: Introduction To C++ Parallel Compilation With TwineCompile

Easily Integrate Exception Handling Into Your Python GUI Apps Through Delphi

Delphi debugging tip: keep an eye on a object field of an object that will ...

Distinguer les processeurs Intel des processeurs Apple Silicon depuis nos programmes

Powerful Award-Winning Windows UI Toolkit For Delphi And C++Builder

Using Apilayer REST APIs from Delphi

Quickly Access Windows System Info In Your Delphi Application With Excellent Component Suite

Build Visual Stunning Apps Faster With Less Code Using RAD Studio Architect Edition

Introduction To Modern C++ With Tutorials

TMS WEB Core for Visual Studio Code v1.2 released!

Quickly Learn About High-Performance Python Generators With A Delphi Windows GUI App

Powerful Multi-sensor Imaging Tool For Processing And Analyzing Hyperspectral Images Built In Delphi

How to write Delphi apps to run and look great on Windows, macOS and Linux

Using Apilayer REST APIs from Delphi

Introducing archive rules in Continua CI

1
VSoft Technologies Blogs VSoft Technologies Blogs 3 years ago in Continua CI,Delphi 0

In version 1.8.1.870 of Continua CI, we have added new archiving functionality to the workspace and repository rules.

Builds can generate a lot of output files: binary library files or report files, for example. Copying a large number of these files back to the server at the end of the build can take time. Manually downloading each individual artefact from the server can be a tedious task, so compressing these files into a handy bundle makes sense.

Previously, you would have needed to use actions, such as the Seven Zip action, in your build stages to zip these files. The compression can now be performed as part of the agent-to-server workspace rules.

To compress a set of files in the agent workspace to an archive in the server workspace, specify a file with a zip extension on the left-hand side of a agent-to-server workspace rule.

e.g.



    Libraries.zip < Output/**.dll


Note that the all the usual operators are taken into account when compressing files so, in the above example, the directory structure is preserved. Likewise, using the <- operator will cause all matching files to be flattened into the root folder of the zip file.

Doubling up with the << operator will delete any existing zip file before compressing to a new file. Without the << operator, multiple sets of files can be added to the same archive file.

e.g.



    Reports.zip < Output/**.html
	Reports.zip < Output/**.css


You can also compress files into subfolders within the zip file using the new : operator

e.g.



    Reports.zip:/css < Output/**.css


Once files have been compressed at the end of one stage, you may need to access the contents of zip files in the next stage. Additionally, you may wish to unpack a zip file from your repository at the start of a stage. The : operator facilitates the extracting of zip files in server-to-agent workspace rules and repository rules.

To extract a set of files from an archive in the server workspace to a folder in the agent workspace, specify a file with a zip extension on the left-hand side of a server-to-agent workspace rule. Ensure that you follow the ‘zip’ with a : operator, otherwise the zip file will just be copied.

e.g.



    Libraries.zip: > Libraries


This also works for repository rules.

e.g.



	$Source.MyRepo$/Documents.zip: > Docs/Main


Note that the all the usual operators >, >>, -> and --> have the same meaning when extracting files as they have when copying file; signifying whether to preserve the directory structure within the zip file and whether to empty the destination folder.

You can also specify a pattern after the : operator, allowing you to filter the extracted files.

 e.g.



	Libraries.zip:/plugins/**.dll > Libraries/Plugins
	$Source.MyRepo$/Documents.zip:**.md > Docs/Markdown


See the Workspace Rules documentation for further details on the new archive rules syntax.

Trending Stories

  • Quickly Learn How To Fetch A Table Using FireDAC In...

  • Tutorial: Introduction To C++ Parallel Compilation With TwineCompile

  • Easily Integrate Exception Handling Into Your Python GUI Apps Through...

  • Delphi debugging tip: keep an eye on a object field...

  • Distinguer les processeurs Intel des processeurs Apple Silicon depuis nos...

Embarcadero GetIt

  • Brook Framework

    Microframework which helps to develop web Pascal applications.

  • Trial - TMS Scripter

    Add the ultimate flexibility and power into your apps with native Pascal or Basic scripting and […]

  • Trial - TMS VCL Chart

    DB-aware and non DB-aware feature-rich charting components for business, statistical, financial […]

  • Trial - TMS VCL Cloud Pack

    TMS VCL Cloud Pack is a Delphi and C++Builder component library to seamlessly use all major cloud […]

  • Trial - TMS VCL UI Pack

    Create modern-looking & feature-rich Windows applications faster with well over 600 components […]

  • Learn Delphi Programming
  • Learn C++
  • Embarcadero Blogs
  • BeginEnd.net
  • Python GUI
  • Firebird News
  • Torry’s Delphi Pages
Copyright DelphiFeeds.com 2021. All Rights Reserved
Embarcadero
Login Register

Login

Lost Password

Register

Lost Password