Posted in

Azure Devops – Execute task before Source Code Checkout

Sometimes we need to execute several tasks before Source Code Checkout – Install Certificates configure git. This Market Place solution can be very helpful: https://marketplace.visualstudio.com/items?itemName=jessehouwing.pre-post-tasks Sample task:
# Starter pipeline
trigger:
– none
pool:
  name: privatepool
steps:
– task: jessehouwing.pre-post-tasks.Pre-CmdLineV2.Pre-CmdLine@2
  displayName: ‘Pre’
  inputs:
    script: ‘du -sh /agent/* | sort -h’
– task: Bash@3
  displayName: ‘Main’
  inputs:
    targetType: ‘inline’
    script: |
      du -sh /agent/* | sort -h
Look like:

Microsoft Certified Trainer, Office 365, AWS, Azure and Cloud Expert-Architect. In the IT world for over than 20 years.

Apart from the main area of Microsoft Azure expert in the field of infrastructure servers Windows Server 2003-2019, Microsoft Active Directory, Hyper-V Private Cloud, IIS, System Center, SQL.

Private Cloud, System Center, Hyper-V, Open Stack Expert and all Microsoft products Expert. Linux Server administrator.

My Azure community projects:

https://mazeball.azurewebsites.net/
https://github.com/MariuszFerdyn?tab=repositories

More