Skip to content

Integrated Build Pipeline & Simple build file - #355

Merged
George (georgend) merged 170 commits into
devfrom
releaseCadencev2
Sep 21, 2020
Merged

George (georgend) merged 170 commits into
devfrom
releaseCadencev2

Conversation

@georgend

@georgend George (georgend) commented Aug 31, 2020 •

Copy link
Copy Markdown
Contributor

The Build is decomposed into stages. At the Beginning of Each stage the required tools are installed. The platform is smart enough to skip installation of the tool is already installed. As part of tool installation, we also authenticate with the Local Nuget Feed. we publish to the local feed to allow downstream build stages to consume the published module, such as the Roll-Up Module Step.

  1. Download Latest OpenAPIDocs from DevX Api
    • Commit Latest OpenAPIDocs to the current branch to keep a record of documents used during Generation and Build.
  2. Generate Profiles
  3. Generate and Build Authentication Module
    • Generate and Build Authentication Module
    • Strong NameAuth Module DLLs
    • Code Sign Auth Module DLLs
    • Nuget Pack Auth Module
    • Code Signing Auth Nuget Package
    • Publish Nuget Package to Local Feed.
  4. Generate and Build Service Modules
    • Generate and Build Service Modules
    • Strong Name Service Modules DLLs
    • Code Sign Service Module DLLs
    • Nuget Pack Service Module
    • Code Signing Service Nuget Package
    • Publish Service Modules Nuget Packages to Local Feed.
  5. Generate and Build Roll-Up Module
    • Register Local Feed as PSRepository
    • Generate and Build Rollup Module
    • Code Sign Rollup Module

Creates an integrated Build Pipeline that executes all steps needed to produce a release product.
Add a convenience build.proj, that allows for msbuild to be used to run the build.
build.proj has the following Targets

  • GenerateProfiles
  • GenerateAuth
  • PackAuth
  • GenerateModules
  • PackBetaModules
  • GenerateRollup

For Example:-

  • Generate Profiles
    dotnet build build.proj /t:GenerateProfiles
  • Generate and Build Authentication Module
    dotnet build build.proj /t:GenerateAuth /p:BuildWhenEqual='$True' /p:EnableSigning='$True'
  • Pack Authentication Module
    dotnet build build.proj /t:PackAuth
  • Generate and Build Beta Modules
    dotnet build build.proj /t:GenerateModules /p:SkipVersionCheck='$True' /p:EnableSigning='$True' /p:SkipVersionCheck='$True' /p:UpdateAutoRest='$True'
  • Pack BetaModules
    dotnet build build.proj /t:PackBetaModules /p:ArtifactsLocation='[directory location]' /p:WorkingDirectory='[preferred working directory]'
  • Generate Rollup Module
    dotnet build build.proj /t:GenerateRollup
    Advantages
    • We can flight, release and test preview versions internally without depending on PSGallery
    • Faster build times by using Self-Hosted Agents on Azure upto 4x faster than previous build time.
    • We can run stages independently of each of each other.
      • Stage 1 only - Download and Commit new OpenAPIDocs
      • Stage 3 only - Produce new Authentication module without producing service modules.
      • Stage 4 only - Produce New Service Modules only
      • Stage 5 only - Produce a New Roll-up Module Only with updated package list
    • We can add new stages to only build if there are Changes detected by querying the DevX ChangeLog Endpoint

George added 3 commits September 1, 2020 01:15
…o produce a release product.

Add a convenience build.proj, that allows for msbuild to be used to run the build.
@georgend
George (georgend) merged commit 755e785 into dev Sep 21, 2020
@peombwa
Peter Ombwa (peombwa) deleted the releaseCadencev2 branch December 18, 2020 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants