go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/cli/execruntime/env_azure_pipeline.go (about)

     1  // Copyright (c) Mondoo, Inc.
     2  // SPDX-License-Identifier: BUSL-1.1
     3  
     4  package execruntime
     5  
     6  const AZUREPIPELINE = "azure"
     7  
     8  var azurePipelineEnv = &RuntimeEnv{
     9  	Id:        AZUREPIPELINE,
    10  	Name:      "Azure Pipelines",
    11  	Namespace: "devops.azure.com",
    12  	Prefix:    "BUILD",
    13  	Identify: []Variable{
    14  		{
    15  			Name: "TF_BUILD",
    16  		},
    17  	},
    18  	Variables: []Variable{
    19  		{
    20  			Name: "BUILD_BUILDID",
    21  			Desc: "The ID of the record for the completed build.",
    22  		},
    23  		{
    24  			Name: "BUILD_BUILDNUMBER",
    25  			Desc: "The name of the completed build.",
    26  		},
    27  		{
    28  			Name: "BUILD_DEFINITIONNAME",
    29  			Desc: "The name of the build pipeline.",
    30  		},
    31  		{
    32  			Name: "BUILD_REASON",
    33  			Desc: "The event that caused the build to run. Manual, IndividualCI, BatchedCI, Schedule, ValidateShelveset, CheckInShelveset, PullRequest, or ResourceTrigger.",
    34  		},
    35  		{
    36  			Name: "BUILD_REPOSITORY_ID",
    37  			Desc: "The unique identifier of the repository.",
    38  		},
    39  		{
    40  			Name: "BUILD_REPOSITORY_URI",
    41  			Desc: "The URL for the repository.",
    42  		},
    43  		{
    44  			Name: "BUILD_REPOSITORY_NAME",
    45  			Desc: "Name of the repository being built.",
    46  		},
    47  		{
    48  			Name: "SYSTEM_PULLREQUEST_PULLREQUESTNUMBER",
    49  			Desc: "Number of the pull request.",
    50  		},
    51  		{
    52  			Name: "SYSTEM_PULLREQUEST_SOURCEBRANCH",
    53  			Desc: "Branch name of the pull request.",
    54  		},
    55  		{
    56  			Name: "SYSTEM_PULLREQUEST_SOURCEREPOSITORYURI",
    57  			Desc: "URL of the pull request.",
    58  		},
    59  		{
    60  			Name: "SYSTEM_JOBNAME",
    61  			Desc: "Name of the job.",
    62  		},
    63  		{
    64  			Name: "BUILD_REQUESTEDFOR",
    65  			Desc: "The person who checked in the change that triggered the build.",
    66  		},
    67  		{
    68  			Name: "BUILD_REQUESTEDFOREMAIL",
    69  			Desc: "The e-mail of the person who checked in the change that triggered the build.",
    70  		},
    71  		{
    72  			Name: "BUILD_SOURCEBRANCHNAME",
    73  			Desc: "The name of the branch the build was queued for.",
    74  		},
    75  		{
    76  			Name: "BUILD_SOURCEVERSION",
    77  			Desc: "The latest version control change that is included in this build.",
    78  		},
    79  		{
    80  			Name: "BUILD_SOURCEVERSIONAUTHOR",
    81  			Desc: "The author of the change that is included in this build.",
    82  		},
    83  		{
    84  			Name: "BUILD_SOURCEVERSIONMESSAGE",
    85  			Desc: "The comment of the commit or changeset.",
    86  		},
    87  		{
    88  			Name: "BUILD_PULLREQUEST_PULLREQUESTID",
    89  			Desc: "The ID of the pull request that caused this build.",
    90  		},
    91  		{
    92  			Name: "BUILD_PULLREQUEST_PULLREQUESTNUMBER",
    93  			Desc: "The number of the pull request that caused this build.",
    94  		},
    95  		{
    96  			Name: "BUILD_TEAMFOUNDATIONCOLLECTIONURI",
    97  			Desc: "The URI of the team foundation collection.",
    98  		},
    99  		{
   100  			Name: "BUILD_TEAMPROJECT",
   101  			Desc: "The name of the project that contains this build.",
   102  		},
   103  		{
   104  			Name: "BUILD_TEAMPROJECTID",
   105  			Desc: "The ID of the project that this build belongs to.",
   106  		},
   107  	},
   108  }