@catladder/cli 3.46.1 → 3.46.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babel-inline.json +11 -0
- package/dist/bundles/catenv/index.js +2 -2
- package/dist/bundles/cli/index.js +1 -1
- package/dist/cli/src/apps/catci/catci.d.ts +1 -1
- package/dist/cli/src/apps/catci/catci.js +23 -20
- package/dist/cli/src/apps/catci/commands/security/auditDocument.d.ts +16 -16
- package/dist/cli/src/apps/catci/commands/security/auditDocument.js +54 -65
- package/dist/cli/src/apps/catci/commands/security/commands.d.ts +1 -1
- package/dist/cli/src/apps/catci/commands/security/commands.js +91 -83
- package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.d.ts +11 -6
- package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.js +43 -43
- package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.d.ts +5 -3
- package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.js +16 -12
- package/dist/cli/src/apps/catenv/catenv.d.ts +2 -2
- package/dist/cli/src/apps/catenv/catenv.js +15 -18
- package/dist/cli/src/apps/catenv/printVariables.d.ts +1 -1
- package/dist/cli/src/apps/catenv/printVariables.js +42 -39
- package/dist/cli/src/apps/catenv/types.d.ts +3 -3
- package/dist/cli/src/apps/catenv/types.js +4 -2
- package/dist/cli/src/apps/catenv/utils.d.ts +9 -6
- package/dist/cli/src/apps/catenv/utils.js +25 -21
- package/dist/cli/src/apps/catenv/verboseBanner.d.ts +1 -1
- package/dist/cli/src/apps/catenv/verboseBanner.js +20 -24
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.d.ts +1 -1
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.js +25 -22
- package/dist/cli/src/apps/catenv/writeEnvDTs.d.ts +1 -1
- package/dist/cli/src/apps/catenv/writeEnvDTs.js +31 -32
- package/dist/cli/src/apps/cli/cli.d.ts +1 -1
- package/dist/cli/src/apps/cli/cli.js +23 -24
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.js +122 -103
- package/dist/cli/src/apps/cli/commands/cloudSQL/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/cloudSQL/index.js +11 -7
- package/dist/cli/src/apps/cli/commands/general/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/general/index.js +67 -62
- package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.js +9 -7
- package/dist/cli/src/apps/cli/commands/general/portForward.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/general/portForward.js +42 -35
- package/dist/cli/src/apps/cli/commands/mongodb/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/index.js +13 -9
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.js +83 -81
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.js +31 -29
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.js +54 -47
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.d.ts +6 -6
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.js +56 -52
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js +140 -140
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js +106 -107
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js +109 -124
- package/dist/cli/src/apps/cli/commands/project/commandDeletePods.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandDeletePods.js +45 -38
- package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.js +28 -23
- package/dist/cli/src/apps/cli/commands/project/commandEnvVars.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandEnvVars.js +14 -10
- package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.js +9 -9
- package/dist/cli/src/apps/cli/commands/project/commandGetShell.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandGetShell.js +29 -26
- package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.js +71 -69
- package/dist/cli/src/apps/cli/commands/project/commandListPods.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandListPods.js +15 -12
- package/dist/cli/src/apps/cli/commands/project/commandNamespace.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandNamespace.js +9 -8
- package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.js +20 -14
- package/dist/cli/src/apps/cli/commands/project/commandOpenGit.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenGit.js +7 -7
- package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.js +14 -10
- package/dist/cli/src/apps/cli/commands/project/commandPauseProject.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandPauseProject.js +28 -23
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.js +80 -63
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.js +7 -7
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.js +17 -16
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.js +16 -15
- package/dist/cli/src/apps/cli/commands/project/commandSetup.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandSetup.js +9 -8
- package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.js +51 -44
- package/dist/cli/src/apps/cli/commands/project/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/index.js +31 -27
- package/dist/cli/src/apps/cli/commands/project/setup/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/index.js +25 -29
- package/dist/cli/src/apps/cli/commands/project/setup/logSection.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/logSection.js +15 -13
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js +40 -31
- package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.js +137 -130
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js +42 -47
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js +15 -13
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js +70 -69
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js +15 -7
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js +21 -16
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js +33 -27
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js +35 -30
- package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.js +12 -10
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.js +31 -29
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.d.ts +1 -1
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js +18 -14
- package/dist/cli/src/apps/cli/verify/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/verify/index.js +13 -11
- package/dist/cli/src/catci.d.ts +1 -1
- package/dist/cli/src/catci.js +5 -3
- package/dist/cli/src/catenv.d.ts +1 -1
- package/dist/cli/src/catenv.js +20 -14
- package/dist/cli/src/cli.d.ts +1 -1
- package/dist/cli/src/cli.js +9 -5
- package/dist/cli/src/config/getProjectConfig.d.ts +8 -6
- package/dist/cli/src/config/getProjectConfig.js +93 -91
- package/dist/cli/src/config/parseChoice.d.ts +3 -3
- package/dist/cli/src/config/parseChoice.js +11 -6
- package/dist/cli/src/gcloud/artifactsRegistry.d.ts +3 -3
- package/dist/cli/src/gcloud/artifactsRegistry.js +12 -11
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.d.ts +1 -1
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.js +23 -22
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.d.ts +1 -1
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js +19 -12
- package/dist/cli/src/gcloud/cloudSql/copyDb.d.ts +9 -9
- package/dist/cli/src/gcloud/cloudSql/copyDb.js +27 -16
- package/dist/cli/src/gcloud/cloudSql/parseConnectionString.d.ts +1 -1
- package/dist/cli/src/gcloud/cloudSql/parseConnectionString.js +12 -10
- package/dist/cli/src/gcloud/cloudSql/startProxy.d.ts +4 -4
- package/dist/cli/src/gcloud/cloudSql/startProxy.js +55 -39
- package/dist/cli/src/gcloud/enableServices.d.ts +2 -2
- package/dist/cli/src/gcloud/enableServices.js +8 -6
- package/dist/cli/src/gcloud/openDashboard.d.ts +1 -1
- package/dist/cli/src/gcloud/openDashboard.js +17 -13
- package/dist/cli/src/gcloud/serviceAccounts.d.ts +6 -6
- package/dist/cli/src/gcloud/serviceAccounts.js +64 -58
- package/dist/cli/src/git/getGetMainBranch.d.ts +1 -1
- package/dist/cli/src/git/getGetMainBranch.js +9 -5
- package/dist/cli/src/git/gitConfig.d.ts +11 -6
- package/dist/cli/src/git/gitConfig.js +17 -11
- package/dist/cli/src/git/gitProjectInformation.d.ts +6 -6
- package/dist/cli/src/git/gitProjectInformation.js +30 -20
- package/dist/cli/src/git/index.d.ts +1 -1
- package/dist/cli/src/git/index.js +23 -16
- package/dist/cli/src/index.d.ts +1 -1
- package/dist/cli/src/index.js +4 -2
- package/dist/cli/src/k8sApi/index.d.ts +1 -1
- package/dist/cli/src/k8sApi/index.js +14 -12
- package/dist/cli/src/kubernetes/index.d.ts +1 -1
- package/dist/cli/src/kubernetes/index.js +24 -17
- package/dist/cli/src/kubernetes/openKubernetesDashboards.d.ts +1 -1
- package/dist/cli/src/kubernetes/openKubernetesDashboards.js +35 -33
- package/dist/cli/src/kubernetes/portForward.d.ts +1 -1
- package/dist/cli/src/kubernetes/portForward.js +7 -5
- package/dist/cli/src/packageInfos.d.ts +1 -1
- package/dist/cli/src/packageInfos.js +5 -3
- package/dist/cli/src/types/types.d.ts +13 -13
- package/dist/cli/src/types/types.js +4 -2
- package/dist/cli/src/utils/boxWithAscii.d.ts +1 -1
- package/dist/cli/src/utils/boxWithAscii.js +12 -10
- package/dist/cli/src/utils/cluster.d.ts +1 -1
- package/dist/cli/src/utils/cluster.js +8 -6
- package/dist/cli/src/utils/editAsFile.d.ts +1 -1
- package/dist/cli/src/utils/editAsFile.js +25 -17
- package/dist/cli/src/utils/files.d.ts +1 -1
- package/dist/cli/src/utils/files.js +15 -12
- package/dist/cli/src/utils/getEditor.d.ts +2 -2
- package/dist/cli/src/utils/getEditor.js +20 -14
- package/dist/cli/src/utils/gitlab.d.ts +9 -9
- package/dist/cli/src/utils/gitlab.js +188 -166
- package/dist/cli/src/utils/log.d.ts +2 -2
- package/dist/cli/src/utils/log.js +18 -16
- package/dist/cli/src/utils/portForwards.d.ts +5 -5
- package/dist/cli/src/utils/portForwards.js +32 -31
- package/dist/cli/src/utils/preferences.d.ts +1 -1
- package/dist/cli/src/utils/preferences.js +43 -36
- package/dist/cli/src/utils/projects/index.d.ts +1 -1
- package/dist/cli/src/utils/projects/index.js +24 -21
- package/dist/cli/src/utils/promise.d.ts +1 -1
- package/dist/cli/src/utils/promise.js +8 -6
- package/dist/cli/src/utils/shell.d.ts +1 -1
- package/dist/cli/src/utils/shell.js +20 -19
- package/dist/pipeline/src/bash/BashExpression.d.ts +18 -18
- package/dist/pipeline/src/bash/BashExpression.js +44 -45
- package/dist/pipeline/src/bash/bashEscape.d.ts +6 -4
- package/dist/pipeline/src/bash/bashEscape.js +63 -73
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.d.ts +3 -5
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.js +7 -6
- package/dist/pipeline/src/bash/bashYaml.d.ts +1 -1
- package/dist/pipeline/src/bash/bashYaml.js +41 -46
- package/dist/pipeline/src/bash/getInjectVarsScript.d.ts +1 -1
- package/dist/pipeline/src/bash/getInjectVarsScript.js +11 -14
- package/dist/pipeline/src/bash/index.d.ts +1 -1
- package/dist/pipeline/src/bash/index.js +23 -16
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.d.ts +1 -1
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js +41 -50
- package/dist/pipeline/src/build/base/constants.d.ts +4 -4
- package/dist/pipeline/src/build/base/constants.js +8 -6
- package/dist/pipeline/src/build/base/createAppBuildJob.d.ts +7 -1
- package/dist/pipeline/src/build/base/createAppBuildJob.js +37 -43
- package/dist/pipeline/src/build/base/createArtifactsConfig.d.ts +1 -1
- package/dist/pipeline/src/build/base/createArtifactsConfig.js +16 -25
- package/dist/pipeline/src/build/base/createBuildJobDefinition.d.ts +3 -3
- package/dist/pipeline/src/build/base/createBuildJobDefinition.js +16 -22
- package/dist/pipeline/src/build/base/index.d.ts +4 -4
- package/dist/pipeline/src/build/base/index.js +15 -34
- package/dist/pipeline/src/build/base/writeBuildInfo.d.ts +1 -1
- package/dist/pipeline/src/build/base/writeBuildInfo.js +7 -7
- package/dist/pipeline/src/build/base/writeDotEnv.d.ts +1 -1
- package/dist/pipeline/src/build/base/writeDotEnv.js +19 -21
- package/dist/pipeline/src/build/cache/createJobCache.d.ts +1 -1
- package/dist/pipeline/src/build/cache/createJobCache.js +47 -49
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.d.ts +1 -1
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js +16 -23
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.d.ts +1 -1
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.js +14 -12
- package/dist/pipeline/src/build/custom/buildJob.d.ts +1 -1
- package/dist/pipeline/src/build/custom/buildJob.js +16 -16
- package/dist/pipeline/src/build/custom/index.d.ts +1 -1
- package/dist/pipeline/src/build/custom/index.js +7 -5
- package/dist/pipeline/src/build/custom/testJob.d.ts +2 -2
- package/dist/pipeline/src/build/custom/testJob.js +67 -71
- package/dist/pipeline/src/build/docker.d.ts +49 -45
- package/dist/pipeline/src/build/docker.js +104 -129
- package/dist/pipeline/src/build/index.d.ts +13 -17
- package/dist/pipeline/src/build/index.js +80 -73
- package/dist/pipeline/src/build/node/buildJob.d.ts +1 -1
- package/dist/pipeline/src/build/node/buildJob.js +34 -37
- package/dist/pipeline/src/build/node/cache.d.ts +1 -1
- package/dist/pipeline/src/build/node/cache.js +34 -56
- package/dist/pipeline/src/build/node/constants.d.ts +4 -4
- package/dist/pipeline/src/build/node/constants.js +8 -6
- package/dist/pipeline/src/build/node/index.d.ts +1 -1
- package/dist/pipeline/src/build/node/index.js +11 -9
- package/dist/pipeline/src/build/node/meteor.d.ts +1 -1
- package/dist/pipeline/src/build/node/meteor.js +39 -54
- package/dist/pipeline/src/build/node/testJob.d.ts +1 -1
- package/dist/pipeline/src/build/node/testJob.js +71 -93
- package/dist/pipeline/src/build/node/yarn.d.ts +2 -2
- package/dist/pipeline/src/build/node/yarn.js +28 -47
- package/dist/pipeline/src/build/rails/build.d.ts +1 -1
- package/dist/pipeline/src/build/rails/build.js +37 -44
- package/dist/pipeline/src/build/rails/index.d.ts +1 -1
- package/dist/pipeline/src/build/rails/index.js +7 -5
- package/dist/pipeline/src/build/rails/testJob.d.ts +1 -1
- package/dist/pipeline/src/build/rails/testJob.js +71 -101
- package/dist/pipeline/src/build/types.d.ts +294 -294
- package/dist/pipeline/src/build/types.js +10 -10
- package/dist/pipeline/src/catenv/index.d.ts +3 -3
- package/dist/pipeline/src/catenv/index.js +10 -8
- package/dist/pipeline/src/config/configruedEnvs.d.ts +1 -1
- package/dist/pipeline/src/config/configruedEnvs.js +18 -23
- package/dist/pipeline/src/config/index.d.ts +1 -1
- package/dist/pipeline/src/config/index.js +23 -16
- package/dist/pipeline/src/config/readConfig.d.ts +4 -4
- package/dist/pipeline/src/config/readConfig.js +34 -32
- package/dist/pipeline/src/constants.d.ts +1 -1
- package/dist/pipeline/src/constants.js +6 -5
- package/dist/pipeline/src/context/createAllComponentsContext.d.ts +8 -4
- package/dist/pipeline/src/context/createAllComponentsContext.js +22 -16
- package/dist/pipeline/src/context/createComponentContext.d.ts +6 -6
- package/dist/pipeline/src/context/createComponentContext.js +87 -96
- package/dist/pipeline/src/context/createWorkspaceContext.d.ts +15 -8
- package/dist/pipeline/src/context/createWorkspaceContext.js +37 -28
- package/dist/pipeline/src/context/getBuildInfoVariables.d.ts +2 -2
- package/dist/pipeline/src/context/getBuildInfoVariables.js +22 -21
- package/dist/pipeline/src/context/getEnvConfig.d.ts +1 -1
- package/dist/pipeline/src/context/getEnvConfig.js +29 -28
- package/dist/pipeline/src/context/getEnvType.d.ts +2 -2
- package/dist/pipeline/src/context/getEnvType.js +10 -9
- package/dist/pipeline/src/context/getEnvironment.d.ts +1 -1
- package/dist/pipeline/src/context/getEnvironment.js +20 -16
- package/dist/pipeline/src/context/getEnvironmentContext.d.ts +6 -1
- package/dist/pipeline/src/context/getEnvironmentContext.js +35 -28
- package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +11 -11
- package/dist/pipeline/src/context/getEnvironmentVariables.js +102 -95
- package/dist/pipeline/src/context/getLabels.d.ts +7 -7
- package/dist/pipeline/src/context/getLabels.js +26 -25
- package/dist/pipeline/src/context/getReviewSlug.d.ts +1 -1
- package/dist/pipeline/src/context/getReviewSlug.js +12 -10
- package/dist/pipeline/src/context/index.d.ts +1 -1
- package/dist/pipeline/src/context/index.js +23 -16
- package/dist/pipeline/src/context/transformJobOnlyVars.d.ts +3 -3
- package/dist/pipeline/src/context/transformJobOnlyVars.js +21 -21
- package/dist/pipeline/src/context/utils/envVars.d.ts +3 -3
- package/dist/pipeline/src/context/utils/envVars.js +12 -12
- package/dist/pipeline/src/defaults/index.d.ts +1 -1
- package/dist/pipeline/src/defaults/index.js +6 -4
- package/dist/pipeline/src/deploy/base/deploy.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/deploy.js +75 -100
- package/dist/pipeline/src/deploy/base/index.d.ts +4 -4
- package/dist/pipeline/src/deploy/base/index.js +6 -10
- package/dist/pipeline/src/deploy/base/rollback.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/rollback.js +30 -26
- package/dist/pipeline/src/deploy/base/stop.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/stop.js +30 -25
- package/dist/pipeline/src/deploy/base/variables.d.ts +4 -4
- package/dist/pipeline/src/deploy/base/variables.js +8 -6
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js +55 -67
- package/dist/pipeline/src/deploy/cloudRun/cleanup.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cleanup.js +16 -17
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js +44 -41
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.d.ts +4 -4
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js +58 -63
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js +63 -73
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.js +38 -38
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.d.ts +7 -7
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js +33 -38
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.js +5 -3
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js +57 -67
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.js +115 -118
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +10 -32
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +9 -23
- package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.d.ts +3 -3
- package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.js +36 -39
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js +36 -37
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js +19 -13
- package/dist/pipeline/src/deploy/cloudRun/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/index.js +72 -76
- package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.d.ts +9 -5
- package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.js +13 -7
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.js +13 -17
- package/dist/pipeline/src/deploy/cloudRun/utils/database.d.ts +5 -5
- package/dist/pipeline/src/deploy/cloudRun/utils/database.js +46 -79
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js +6 -6
- package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js +7 -9
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js +6 -4
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.js +5 -3
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js +6 -4
- package/dist/pipeline/src/deploy/cloudSql/utils.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudSql/utils.js +7 -9
- package/dist/pipeline/src/deploy/custom/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/custom/deployJob.js +30 -34
- package/dist/pipeline/src/deploy/custom/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/custom/index.js +9 -7
- package/dist/pipeline/src/deploy/dockerTag/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/dockerTag/deployJob.js +18 -22
- package/dist/pipeline/src/deploy/dockerTag/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/dockerTag/index.js +9 -7
- package/dist/pipeline/src/deploy/index.d.ts +6 -8
- package/dist/pipeline/src/deploy/index.js +27 -20
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.d.ts +5 -3
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.js +25 -19
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.d.ts +7 -7
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js +36 -35
- package/dist/pipeline/src/deploy/kubernetes/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js +46 -61
- package/dist/pipeline/src/deploy/kubernetes/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/kubernetes/index.js +54 -45
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.d.ts +3 -3
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js +35 -34
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +84 -84
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +70 -63
- package/dist/pipeline/src/deploy/kubernetes/mongodb.d.ts +28 -28
- package/dist/pipeline/src/deploy/kubernetes/mongodb.js +88 -93
- package/dist/pipeline/src/deploy/types/base.d.ts +27 -27
- package/dist/pipeline/src/deploy/types/base.js +4 -2
- package/dist/pipeline/src/deploy/types/custom.d.ts +25 -25
- package/dist/pipeline/src/deploy/types/custom.js +4 -2
- package/dist/pipeline/src/deploy/types/dockerTag.d.ts +10 -10
- package/dist/pipeline/src/deploy/types/dockerTag.js +4 -2
- package/dist/pipeline/src/deploy/types/executeBase.d.ts +15 -15
- package/dist/pipeline/src/deploy/types/executeBase.js +4 -2
- package/dist/pipeline/src/deploy/types/googleCloudRun.d.ts +435 -435
- package/dist/pipeline/src/deploy/types/googleCloudRun.js +16 -14
- package/dist/pipeline/src/deploy/types/index.d.ts +6 -6
- package/dist/pipeline/src/deploy/types/index.js +27 -21
- package/dist/pipeline/src/deploy/types/kubernetes.d.ts +255 -255
- package/dist/pipeline/src/deploy/types/kubernetes.js +4 -2
- package/dist/pipeline/src/deploy/utils.d.ts +1 -1
- package/dist/pipeline/src/deploy/utils.js +23 -21
- package/dist/pipeline/src/globalScriptFunctions/index.d.ts +6 -6
- package/dist/pipeline/src/globalScriptFunctions/index.js +21 -19
- package/dist/pipeline/src/index.d.ts +1 -1
- package/dist/pipeline/src/index.js +23 -16
- package/dist/pipeline/src/pipeline/agent/createAgentContext.d.ts +19 -19
- package/dist/pipeline/src/pipeline/agent/createAgentContext.js +41 -37
- package/dist/pipeline/src/pipeline/agent/createAgentEventJob.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/createAgentEventJob.js +30 -31
- package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.js +36 -44
- package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.js +7 -5
- package/dist/pipeline/src/pipeline/agent/prompts.d.ts +2 -2
- package/dist/pipeline/src/pipeline/agent/prompts.js +32 -14
- package/dist/pipeline/src/pipeline/agent/shared.d.ts +5 -3
- package/dist/pipeline/src/pipeline/agent/shared.js +26 -24
- package/dist/pipeline/src/pipeline/agent/utils.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/utils.js +11 -9
- package/dist/pipeline/src/pipeline/createAllJobs.d.ts +17 -13
- package/dist/pipeline/src/pipeline/createAllJobs.js +56 -44
- package/dist/pipeline/src/pipeline/createJobsForComponent.d.ts +1 -1
- package/dist/pipeline/src/pipeline/createJobsForComponent.js +28 -27
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.d.ts +1 -1
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.js +8 -6
- package/dist/pipeline/src/pipeline/createMainPipeline.d.ts +1 -1
- package/dist/pipeline/src/pipeline/createMainPipeline.js +85 -79
- package/dist/pipeline/src/pipeline/generatePipelineFiles.d.ts +1 -1
- package/dist/pipeline/src/pipeline/generatePipelineFiles.js +78 -58
- package/dist/pipeline/src/pipeline/getPipelineStages.d.ts +1 -1
- package/dist/pipeline/src/pipeline/getPipelineStages.js +8 -10
- package/dist/pipeline/src/pipeline/gitlab/cache.d.ts +5 -5
- package/dist/pipeline/src/pipeline/gitlab/cache.js +26 -24
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.d.ts +4 -4
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js +228 -239
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.d.ts +7 -2
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.js +64 -59
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.d.ts +34 -34
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js +37 -47
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.d.ts +1 -1
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.js +10 -40
- package/dist/pipeline/src/pipeline/index.d.ts +1 -1
- package/dist/pipeline/src/pipeline/index.js +23 -16
- package/dist/pipeline/src/pipeline/packageManager.d.ts +1 -1
- package/dist/pipeline/src/pipeline/packageManager.js +47 -59
- package/dist/pipeline/src/rules/index.d.ts +1 -1
- package/dist/pipeline/src/rules/index.js +15 -13
- package/dist/pipeline/src/runner/index.d.ts +1 -1
- package/dist/pipeline/src/runner/index.js +6 -4
- package/dist/pipeline/src/types/agent.d.ts +15 -15
- package/dist/pipeline/src/types/agent.js +4 -2
- package/dist/pipeline/src/types/config.d.ts +152 -154
- package/dist/pipeline/src/types/config.js +24 -28
- package/dist/pipeline/src/types/context.d.ts +104 -104
- package/dist/pipeline/src/types/context.js +9 -7
- package/dist/pipeline/src/types/environmentContext.d.ts +25 -25
- package/dist/pipeline/src/types/environmentContext.js +4 -2
- package/dist/pipeline/src/types/gitlab-ci-yml.d.ts +497 -497
- package/dist/pipeline/src/types/gitlab-ci-yml.js +4 -2
- package/dist/pipeline/src/types/gitlab-types.d.ts +15 -15
- package/dist/pipeline/src/types/gitlab-types.js +4 -2
- package/dist/pipeline/src/types/hooks.d.ts +26 -26
- package/dist/pipeline/src/types/hooks.js +4 -2
- package/dist/pipeline/src/types/index.d.ts +1 -1
- package/dist/pipeline/src/types/index.js +23 -16
- package/dist/pipeline/src/types/jobDefinition.d.ts +3 -3
- package/dist/pipeline/src/types/jobDefinition.js +4 -2
- package/dist/pipeline/src/types/jobs.d.ts +93 -93
- package/dist/pipeline/src/types/jobs.js +5 -12
- package/dist/pipeline/src/types/pipeline.d.ts +1 -1
- package/dist/pipeline/src/types/pipeline.js +4 -2
- package/dist/pipeline/src/types/release.d.ts +6 -6
- package/dist/pipeline/src/types/release.js +4 -2
- package/dist/pipeline/src/types/utils.d.ts +1 -3
- package/dist/pipeline/src/types/utils.js +4 -2
- package/dist/pipeline/src/utils/gitlab.d.ts +2 -2
- package/dist/pipeline/src/utils/gitlab.js +12 -15
- package/dist/pipeline/src/utils/index.d.ts +1 -1
- package/dist/pipeline/src/utils/index.js +12 -9
- package/dist/pipeline/src/utils/jsonParse.d.ts +1 -1
- package/dist/pipeline/src/utils/jsonParse.js +11 -10
- package/dist/pipeline/src/utils/measureTime.d.ts +4 -4
- package/dist/pipeline/src/utils/measureTime.js +39 -34
- package/dist/pipeline/src/utils/removeUndefined.d.ts +1 -1
- package/dist/pipeline/src/utils/removeUndefined.js +6 -4
- package/dist/pipeline/src/utils/writeFiles.d.ts +10 -10
- package/dist/pipeline/src/utils/writeFiles.js +53 -59
- package/dist/pipeline/src/variables/VariableValue.d.ts +1 -1
- package/dist/pipeline/src/variables/VariableValue.js +4 -2
- package/dist/pipeline/src/variables/VariableValueContainingReferences.d.ts +12 -12
- package/dist/pipeline/src/variables/VariableValueContainingReferences.js +45 -51
- package/dist/pipeline/src/variables/resolveAllReferences.d.ts +1 -1
- package/dist/pipeline/src/variables/resolveAllReferences.js +17 -18
- package/dist/pipeline/src/variables/resolveAllReferencesOnce.d.ts +2 -2
- package/dist/pipeline/src/variables/resolveAllReferencesOnce.js +14 -17
- package/dist/pipeline/src/variables/resolveReferencesOnce.d.ts +3 -3
- package/dist/pipeline/src/variables/resolveReferencesOnce.js +17 -16
- package/package.json +7 -2
|
@@ -8,38 +8,38 @@
|
|
|
8
8
|
* via the `definition` "image".
|
|
9
9
|
*/
|
|
10
10
|
export type Image = string | {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Full name of the image that should be used. It should contain the Registry part if needed.
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* Command or script that should be executed as the container's entrypoint. It will be translated to Docker's --entrypoint option while creating the container. The syntax is similar to Dockerfile's ENTRYPOINT directive, where each shell token is a separate string in the array.
|
|
17
|
+
*
|
|
18
|
+
* @minItems 1
|
|
19
|
+
*/
|
|
20
|
+
entrypoint?: any[];
|
|
21
|
+
pull_policy?: ("always" | "never" | "if-not-present") | ("always" | "never" | "if-not-present")[];
|
|
22
22
|
} | string[];
|
|
23
23
|
/**
|
|
24
24
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
25
25
|
* via the `definition` "services".
|
|
26
26
|
*/
|
|
27
27
|
export type Services = (string | {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Full name of the image that should be used. It should contain the Registry part if needed.
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* @minItems 1
|
|
34
|
+
*/
|
|
35
|
+
entrypoint?: string[];
|
|
36
|
+
pull_policy?: ("always" | "never" | "if-not-present") | ("always" | "never" | "if-not-present")[];
|
|
37
|
+
/**
|
|
38
|
+
* @minItems 1
|
|
39
|
+
*/
|
|
40
|
+
command?: string[];
|
|
41
|
+
alias?: string;
|
|
42
|
+
variables?: JobVariables;
|
|
43
43
|
})[];
|
|
44
44
|
/**
|
|
45
45
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
@@ -66,8 +66,8 @@ export type Interruptible = boolean;
|
|
|
66
66
|
* via the `definition` "retry".
|
|
67
67
|
*/
|
|
68
68
|
export type Retry = RetryMax | {
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
max?: RetryMax;
|
|
70
|
+
when?: RetryErrors | RetryErrors[];
|
|
71
71
|
};
|
|
72
72
|
/**
|
|
73
73
|
* The number of times the job will be retried if it fails. Defaults to 0 and can max be retried 2 times (3 times total).
|
|
@@ -96,54 +96,54 @@ export type Timeout = string;
|
|
|
96
96
|
* via the `definition` "include_item".
|
|
97
97
|
*/
|
|
98
98
|
export type IncludeItem = string | {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Relative path from local repository root (`/`) to the `yaml`/`yml` file template. The file must be on the same branch, and does not work across git submodules.
|
|
101
|
+
*/
|
|
102
|
+
local: string;
|
|
103
|
+
rules?: IncludeRules;
|
|
104
|
+
inputs?: Inputs;
|
|
105
105
|
} | {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
106
|
+
/**
|
|
107
|
+
* Path to the project, e.g. `group/project`, or `group/sub-group/project` [Learn more](https://docs.gitlab.com/ee/ci/yaml/index.html#includefile).
|
|
108
|
+
*/
|
|
109
|
+
project: string;
|
|
110
|
+
/**
|
|
111
|
+
* Branch/Tag/Commit-hash for the target project.
|
|
112
|
+
*/
|
|
113
|
+
ref?: string;
|
|
114
|
+
file: string | string[];
|
|
115
|
+
rules?: IncludeRules;
|
|
116
|
+
inputs?: Inputs;
|
|
117
117
|
} | {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
118
|
+
/**
|
|
119
|
+
* Use a `.gitlab-ci.yml` template as a base, e.g. `Nodejs.gitlab-ci.yml`.
|
|
120
|
+
*/
|
|
121
|
+
template: string;
|
|
122
|
+
rules?: IncludeRules;
|
|
123
|
+
inputs?: Inputs;
|
|
124
124
|
} | {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
/**
|
|
126
|
+
* Local path to component directory or full path to external component directory.
|
|
127
|
+
*/
|
|
128
|
+
component: string;
|
|
129
|
+
rules?: IncludeRules;
|
|
130
|
+
inputs?: Inputs;
|
|
131
131
|
} | {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
/**
|
|
133
|
+
* URL to a `yaml`/`yml` template file using HTTP/HTTPS.
|
|
134
|
+
*/
|
|
135
|
+
remote: string;
|
|
136
|
+
rules?: IncludeRules;
|
|
137
|
+
inputs?: Inputs;
|
|
138
138
|
};
|
|
139
139
|
/**
|
|
140
140
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
141
141
|
* via the `definition` "includeRules".
|
|
142
142
|
*/
|
|
143
143
|
export type IncludeRules = ({
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
if?: If;
|
|
145
|
+
exists?: Exists;
|
|
146
|
+
when?: ("never" | "always") | null;
|
|
147
147
|
} | string | string[])[] | null;
|
|
148
148
|
/**
|
|
149
149
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
@@ -156,307 +156,307 @@ export type If = string;
|
|
|
156
156
|
*/
|
|
157
157
|
export type Exists = string[];
|
|
158
158
|
export type JobTemplate = {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Filter job based on if Kubernetes integration is active.
|
|
181
|
-
*/
|
|
182
|
-
kubernetes?: "active";
|
|
183
|
-
variables?: string[];
|
|
184
|
-
/**
|
|
185
|
-
* Filter job creation based on files that were modified in a git push.
|
|
186
|
-
*/
|
|
187
|
-
changes?: string[];
|
|
188
|
-
};
|
|
159
|
+
image?: Image;
|
|
160
|
+
services?: Services;
|
|
161
|
+
before_script?: BeforeScript;
|
|
162
|
+
after_script?: AfterScript;
|
|
163
|
+
hooks?: Hooks;
|
|
164
|
+
rules?: Rules;
|
|
165
|
+
variables?: JobVariables1;
|
|
166
|
+
cache?: Cache;
|
|
167
|
+
id_tokens?: IdTokens;
|
|
168
|
+
secrets?: Secrets;
|
|
169
|
+
script?: string | (string | string[])[];
|
|
170
|
+
/**
|
|
171
|
+
* Define what stage the job will run in.
|
|
172
|
+
*/
|
|
173
|
+
stage?: string | string[];
|
|
174
|
+
/**
|
|
175
|
+
* Job will run *only* when these filtering options match.
|
|
176
|
+
*/
|
|
177
|
+
only?: null | FilterRefs | {
|
|
178
|
+
refs?: FilterRefs;
|
|
189
179
|
/**
|
|
190
|
-
*
|
|
180
|
+
* Filter job based on if Kubernetes integration is active.
|
|
191
181
|
*/
|
|
192
|
-
|
|
182
|
+
kubernetes?: "active";
|
|
183
|
+
variables?: string[];
|
|
193
184
|
/**
|
|
194
|
-
*
|
|
185
|
+
* Filter job creation based on files that were modified in a git push.
|
|
195
186
|
*/
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
187
|
+
changes?: string[];
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* The name of one or more jobs to inherit configuration from.
|
|
191
|
+
*/
|
|
192
|
+
extends?: string | string[];
|
|
193
|
+
/**
|
|
194
|
+
* The list of jobs in previous stages whose sole completion is needed to start the current job.
|
|
195
|
+
*/
|
|
196
|
+
needs?: (string | {
|
|
197
|
+
job: string;
|
|
198
|
+
artifacts?: boolean;
|
|
199
|
+
optional?: boolean;
|
|
200
|
+
parallel?: ParallelMatrix;
|
|
201
|
+
} | {
|
|
202
|
+
pipeline: string;
|
|
203
|
+
job: string;
|
|
204
|
+
artifacts?: boolean;
|
|
205
|
+
parallel?: ParallelMatrix;
|
|
206
|
+
} | {
|
|
207
|
+
job: string;
|
|
208
|
+
project: string;
|
|
209
|
+
ref: string;
|
|
210
|
+
artifacts?: boolean;
|
|
211
|
+
parallel?: ParallelMatrix;
|
|
212
|
+
})[];
|
|
213
|
+
/**
|
|
214
|
+
* Job will run *except* for when these filtering options match.
|
|
215
|
+
*/
|
|
216
|
+
except?: null | FilterRefs | {
|
|
217
|
+
refs?: FilterRefs;
|
|
213
218
|
/**
|
|
214
|
-
*
|
|
219
|
+
* Filter job based on if Kubernetes integration is active.
|
|
215
220
|
*/
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
221
|
+
kubernetes?: "active";
|
|
222
|
+
variables?: string[];
|
|
223
|
+
/**
|
|
224
|
+
* Filter job creation based on files that were modified in a git push.
|
|
225
|
+
*/
|
|
226
|
+
changes?: string[];
|
|
227
|
+
};
|
|
228
|
+
tags?: Tags;
|
|
229
|
+
allow_failure?: AllowFailure;
|
|
230
|
+
timeout?: Timeout;
|
|
231
|
+
when?: When;
|
|
232
|
+
start_in?: StartIn;
|
|
233
|
+
/**
|
|
234
|
+
* Specify a list of job names from earlier stages from which artifacts should be loaded. By default, all previous artifacts are passed. Use an empty array to skip downloading artifacts.
|
|
235
|
+
*/
|
|
236
|
+
dependencies?: string[];
|
|
237
|
+
artifacts?: Artifacts;
|
|
238
|
+
/**
|
|
239
|
+
* Used to associate environment metadata with a deploy. Environment can have a name and URL attached to it, and will be displayed under /environments under the project.
|
|
240
|
+
*/
|
|
241
|
+
environment?: string | {
|
|
242
|
+
/**
|
|
243
|
+
* The name of the environment, e.g. 'qa', 'staging', 'production'.
|
|
244
|
+
*/
|
|
245
|
+
name: string;
|
|
246
|
+
/**
|
|
247
|
+
* When set, this will expose buttons in various places for the current environment in Gitlab, that will take you to the defined URL.
|
|
248
|
+
*/
|
|
249
|
+
url?: string;
|
|
250
|
+
/**
|
|
251
|
+
* The name of a job to execute when the environment is about to be stopped.
|
|
252
|
+
*/
|
|
253
|
+
on_stop?: string;
|
|
254
|
+
/**
|
|
255
|
+
* Specifies what this job will do. 'start' (default) indicates the job will start the deployment. 'prepare'/'verify'/'access' indicates this will not affect the deployment. 'stop' indicates this will stop the deployment.
|
|
256
|
+
*/
|
|
257
|
+
action?: "start" | "prepare" | "stop" | "verify" | "access";
|
|
258
|
+
/**
|
|
259
|
+
* The amount of time it should take before Gitlab will automatically stop the environment. Supports a wide variety of formats, e.g. '1 week', '3 mins 4 sec', '2 hrs 20 min', '2h20min', '6 mos 1 day', '47 yrs 6 mos and 4d', '3 weeks and 2 days'.
|
|
260
|
+
*/
|
|
261
|
+
auto_stop_in?: string;
|
|
262
|
+
/**
|
|
263
|
+
* Used to configure the kubernetes deployment for this environment. This is currently not supported for kubernetes clusters that are managed by Gitlab.
|
|
264
|
+
*/
|
|
265
|
+
kubernetes?: {
|
|
266
|
+
/**
|
|
267
|
+
* The kubernetes namespace where this environment should be deployed to.
|
|
268
|
+
*/
|
|
269
|
+
namespace?: string;
|
|
270
|
+
[k: string]: any | undefined;
|
|
227
271
|
};
|
|
228
|
-
tags?: Tags;
|
|
229
|
-
allow_failure?: AllowFailure;
|
|
230
|
-
timeout?: Timeout;
|
|
231
|
-
when?: When;
|
|
232
|
-
start_in?: StartIn;
|
|
233
272
|
/**
|
|
234
|
-
*
|
|
273
|
+
* Explicitly specifies the tier of the deployment environment if non-standard environment name is used.
|
|
274
|
+
*/
|
|
275
|
+
deployment_tier?: "production" | "staging" | "testing" | "development" | "other";
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* Indicates that the job creates a Release.
|
|
279
|
+
*/
|
|
280
|
+
release?: {
|
|
281
|
+
/**
|
|
282
|
+
* The tag_name must be specified. It can refer to an existing Git tag or can be specified by the user.
|
|
235
283
|
*/
|
|
236
|
-
|
|
237
|
-
artifacts?: Artifacts;
|
|
284
|
+
tag_name: string;
|
|
238
285
|
/**
|
|
239
|
-
*
|
|
286
|
+
* Message to use if creating a new annotated tag.
|
|
240
287
|
*/
|
|
241
|
-
|
|
288
|
+
tag_message?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Specifies the longer description of the Release.
|
|
291
|
+
*/
|
|
292
|
+
description: string;
|
|
293
|
+
/**
|
|
294
|
+
* The Release name. If omitted, it is populated with the value of release: tag_name.
|
|
295
|
+
*/
|
|
296
|
+
name?: string;
|
|
297
|
+
/**
|
|
298
|
+
* If the release: tag_name doesn’t exist yet, the release is created from ref. ref can be a commit SHA, another tag name, or a branch name.
|
|
299
|
+
*/
|
|
300
|
+
ref?: string;
|
|
301
|
+
/**
|
|
302
|
+
* The title of each milestone the release is associated with.
|
|
303
|
+
*/
|
|
304
|
+
milestones?: string[];
|
|
305
|
+
/**
|
|
306
|
+
* The date and time when the release is ready. Defaults to the current date and time if not defined. Should be enclosed in quotes and expressed in ISO 8601 format.
|
|
307
|
+
*/
|
|
308
|
+
released_at?: string;
|
|
309
|
+
assets?: {
|
|
310
|
+
/**
|
|
311
|
+
* Include asset links in the release.
|
|
312
|
+
*
|
|
313
|
+
* @minItems 1
|
|
314
|
+
*/
|
|
315
|
+
links: {
|
|
242
316
|
/**
|
|
243
|
-
* The name of the
|
|
317
|
+
* The name of the link.
|
|
244
318
|
*/
|
|
245
319
|
name: string;
|
|
246
320
|
/**
|
|
247
|
-
*
|
|
248
|
-
*/
|
|
249
|
-
url?: string;
|
|
250
|
-
/**
|
|
251
|
-
* The name of a job to execute when the environment is about to be stopped.
|
|
252
|
-
*/
|
|
253
|
-
on_stop?: string;
|
|
254
|
-
/**
|
|
255
|
-
* Specifies what this job will do. 'start' (default) indicates the job will start the deployment. 'prepare'/'verify'/'access' indicates this will not affect the deployment. 'stop' indicates this will stop the deployment.
|
|
321
|
+
* The URL to download a file.
|
|
256
322
|
*/
|
|
257
|
-
|
|
323
|
+
url: string;
|
|
258
324
|
/**
|
|
259
|
-
* The
|
|
325
|
+
* The redirect link to the url.
|
|
260
326
|
*/
|
|
261
|
-
|
|
327
|
+
filepath?: string;
|
|
262
328
|
/**
|
|
263
|
-
*
|
|
329
|
+
* The content kind of what users can download via url.
|
|
264
330
|
*/
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
* The kubernetes namespace where this environment should be deployed to.
|
|
268
|
-
*/
|
|
269
|
-
namespace?: string;
|
|
270
|
-
[k: string]: any | undefined;
|
|
271
|
-
};
|
|
272
|
-
/**
|
|
273
|
-
* Explicitly specifies the tier of the deployment environment if non-standard environment name is used.
|
|
274
|
-
*/
|
|
275
|
-
deployment_tier?: "production" | "staging" | "testing" | "development" | "other";
|
|
331
|
+
link_type?: "runbook" | "package" | "image" | "other";
|
|
332
|
+
}[];
|
|
276
333
|
};
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* Must be a regular expression, optionally but recommended to be quoted, and must be surrounded with '/'. Example: '/Code coverage: \d+\.\d+/'
|
|
337
|
+
*/
|
|
338
|
+
coverage?: string;
|
|
339
|
+
retry?: Retry;
|
|
340
|
+
parallel?: Parallel;
|
|
341
|
+
interruptible?: Interruptible;
|
|
342
|
+
/**
|
|
343
|
+
* Limit job concurrency. Can be used to ensure that the Runner will not run certain jobs simultaneously.
|
|
344
|
+
*/
|
|
345
|
+
resource_group?: string;
|
|
346
|
+
trigger?: {
|
|
347
|
+
/**
|
|
348
|
+
* Path to the project, e.g. `group/project`, or `group/sub-group/project`.
|
|
349
|
+
*/
|
|
350
|
+
project: string;
|
|
277
351
|
/**
|
|
278
|
-
*
|
|
352
|
+
* The branch name that a downstream pipeline will use
|
|
279
353
|
*/
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* The tag_name must be specified. It can refer to an existing Git tag or can be specified by the user.
|
|
283
|
-
*/
|
|
284
|
-
tag_name: string;
|
|
285
|
-
/**
|
|
286
|
-
* Message to use if creating a new annotated tag.
|
|
287
|
-
*/
|
|
288
|
-
tag_message?: string;
|
|
289
|
-
/**
|
|
290
|
-
* Specifies the longer description of the Release.
|
|
291
|
-
*/
|
|
292
|
-
description: string;
|
|
293
|
-
/**
|
|
294
|
-
* The Release name. If omitted, it is populated with the value of release: tag_name.
|
|
295
|
-
*/
|
|
296
|
-
name?: string;
|
|
297
|
-
/**
|
|
298
|
-
* If the release: tag_name doesn’t exist yet, the release is created from ref. ref can be a commit SHA, another tag name, or a branch name.
|
|
299
|
-
*/
|
|
300
|
-
ref?: string;
|
|
301
|
-
/**
|
|
302
|
-
* The title of each milestone the release is associated with.
|
|
303
|
-
*/
|
|
304
|
-
milestones?: string[];
|
|
305
|
-
/**
|
|
306
|
-
* The date and time when the release is ready. Defaults to the current date and time if not defined. Should be enclosed in quotes and expressed in ISO 8601 format.
|
|
307
|
-
*/
|
|
308
|
-
released_at?: string;
|
|
309
|
-
assets?: {
|
|
310
|
-
/**
|
|
311
|
-
* Include asset links in the release.
|
|
312
|
-
*
|
|
313
|
-
* @minItems 1
|
|
314
|
-
*/
|
|
315
|
-
links: {
|
|
316
|
-
/**
|
|
317
|
-
* The name of the link.
|
|
318
|
-
*/
|
|
319
|
-
name: string;
|
|
320
|
-
/**
|
|
321
|
-
* The URL to download a file.
|
|
322
|
-
*/
|
|
323
|
-
url: string;
|
|
324
|
-
/**
|
|
325
|
-
* The redirect link to the url.
|
|
326
|
-
*/
|
|
327
|
-
filepath?: string;
|
|
328
|
-
/**
|
|
329
|
-
* The content kind of what users can download via url.
|
|
330
|
-
*/
|
|
331
|
-
link_type?: "runbook" | "package" | "image" | "other";
|
|
332
|
-
}[];
|
|
333
|
-
};
|
|
334
|
-
};
|
|
354
|
+
branch?: string;
|
|
335
355
|
/**
|
|
336
|
-
*
|
|
356
|
+
* You can mirror the pipeline status from the triggered pipeline to the source bridge job by using strategy: depend
|
|
337
357
|
*/
|
|
338
|
-
|
|
339
|
-
retry?: Retry;
|
|
340
|
-
parallel?: Parallel;
|
|
341
|
-
interruptible?: Interruptible;
|
|
358
|
+
strategy?: "depend";
|
|
342
359
|
/**
|
|
343
|
-
*
|
|
360
|
+
* Specify what to forward to the downstream pipeline.
|
|
344
361
|
*/
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
branch?: string;
|
|
355
|
-
/**
|
|
356
|
-
* You can mirror the pipeline status from the triggered pipeline to the source bridge job by using strategy: depend
|
|
357
|
-
*/
|
|
358
|
-
strategy?: "depend";
|
|
359
|
-
/**
|
|
360
|
-
* Specify what to forward to the downstream pipeline.
|
|
361
|
-
*/
|
|
362
|
-
forward?: {
|
|
363
|
-
/**
|
|
364
|
-
* Variables defined in the trigger job are passed to downstream pipelines.
|
|
365
|
-
*/
|
|
366
|
-
yaml_variables?: boolean;
|
|
367
|
-
/**
|
|
368
|
-
* Variables added for manual pipeline runs and scheduled pipelines are passed to downstream pipelines.
|
|
369
|
-
*/
|
|
370
|
-
pipeline_variables?: boolean;
|
|
371
|
-
};
|
|
372
|
-
} | {
|
|
373
|
-
include?: string | ({
|
|
374
|
-
/**
|
|
375
|
-
* Relative path from local repository root (`/`) to the local YAML file to define the pipeline configuration.
|
|
376
|
-
*/
|
|
377
|
-
local?: string;
|
|
378
|
-
} | {
|
|
379
|
-
/**
|
|
380
|
-
* Name of the template YAML file to use in the pipeline configuration.
|
|
381
|
-
*/
|
|
382
|
-
template?: string;
|
|
383
|
-
} | {
|
|
384
|
-
/**
|
|
385
|
-
* Relative path to the generated YAML file which is extracted from the artifacts and used as the configuration for triggering the child pipeline.
|
|
386
|
-
*/
|
|
387
|
-
artifact: string;
|
|
388
|
-
/**
|
|
389
|
-
* Job name which generates the artifact
|
|
390
|
-
*/
|
|
391
|
-
job: string;
|
|
392
|
-
} | {
|
|
393
|
-
/**
|
|
394
|
-
* Path to another private project under the same GitLab instance, like `group/project` or `group/sub-group/project`.
|
|
395
|
-
*/
|
|
396
|
-
project: string;
|
|
397
|
-
/**
|
|
398
|
-
* Branch/Tag/Commit hash for the target project.
|
|
399
|
-
*/
|
|
400
|
-
ref?: string;
|
|
401
|
-
/**
|
|
402
|
-
* Relative path from repository root (`/`) to the pipeline configuration YAML file.
|
|
403
|
-
*/
|
|
404
|
-
file: string;
|
|
405
|
-
})[];
|
|
406
|
-
/**
|
|
407
|
-
* You can mirror the pipeline status from the triggered pipeline to the source bridge job by using strategy: depend
|
|
408
|
-
*/
|
|
409
|
-
strategy?: "depend";
|
|
410
|
-
/**
|
|
411
|
-
* Specify what to forward to the downstream pipeline.
|
|
412
|
-
*/
|
|
413
|
-
forward?: {
|
|
414
|
-
/**
|
|
415
|
-
* Variables defined in the trigger job are passed to downstream pipelines.
|
|
416
|
-
*/
|
|
417
|
-
yaml_variables?: boolean;
|
|
418
|
-
/**
|
|
419
|
-
* Variables added for manual pipeline runs and scheduled pipelines are passed to downstream pipelines.
|
|
420
|
-
*/
|
|
421
|
-
pipeline_variables?: boolean;
|
|
422
|
-
};
|
|
423
|
-
} | string;
|
|
424
|
-
inherit?: {
|
|
425
|
-
default?: boolean | ("after_script" | "artifacts" | "before_script" | "cache" | "image" | "interruptible" | "retry" | "services" | "tags" | "timeout")[];
|
|
426
|
-
variables?: boolean | string[];
|
|
362
|
+
forward?: {
|
|
363
|
+
/**
|
|
364
|
+
* Variables defined in the trigger job are passed to downstream pipelines.
|
|
365
|
+
*/
|
|
366
|
+
yaml_variables?: boolean;
|
|
367
|
+
/**
|
|
368
|
+
* Variables added for manual pipeline runs and scheduled pipelines are passed to downstream pipelines.
|
|
369
|
+
*/
|
|
370
|
+
pipeline_variables?: boolean;
|
|
427
371
|
};
|
|
372
|
+
} | {
|
|
373
|
+
include?: string | ({
|
|
374
|
+
/**
|
|
375
|
+
* Relative path from local repository root (`/`) to the local YAML file to define the pipeline configuration.
|
|
376
|
+
*/
|
|
377
|
+
local?: string;
|
|
378
|
+
} | {
|
|
379
|
+
/**
|
|
380
|
+
* Name of the template YAML file to use in the pipeline configuration.
|
|
381
|
+
*/
|
|
382
|
+
template?: string;
|
|
383
|
+
} | {
|
|
384
|
+
/**
|
|
385
|
+
* Relative path to the generated YAML file which is extracted from the artifacts and used as the configuration for triggering the child pipeline.
|
|
386
|
+
*/
|
|
387
|
+
artifact: string;
|
|
388
|
+
/**
|
|
389
|
+
* Job name which generates the artifact
|
|
390
|
+
*/
|
|
391
|
+
job: string;
|
|
392
|
+
} | {
|
|
393
|
+
/**
|
|
394
|
+
* Path to another private project under the same GitLab instance, like `group/project` or `group/sub-group/project`.
|
|
395
|
+
*/
|
|
396
|
+
project: string;
|
|
397
|
+
/**
|
|
398
|
+
* Branch/Tag/Commit hash for the target project.
|
|
399
|
+
*/
|
|
400
|
+
ref?: string;
|
|
401
|
+
/**
|
|
402
|
+
* Relative path from repository root (`/`) to the pipeline configuration YAML file.
|
|
403
|
+
*/
|
|
404
|
+
file: string;
|
|
405
|
+
})[];
|
|
406
|
+
/**
|
|
407
|
+
* You can mirror the pipeline status from the triggered pipeline to the source bridge job by using strategy: depend
|
|
408
|
+
*/
|
|
409
|
+
strategy?: "depend";
|
|
428
410
|
/**
|
|
429
|
-
*
|
|
411
|
+
* Specify what to forward to the downstream pipeline.
|
|
430
412
|
*/
|
|
431
|
-
|
|
413
|
+
forward?: {
|
|
414
|
+
/**
|
|
415
|
+
* Variables defined in the trigger job are passed to downstream pipelines.
|
|
416
|
+
*/
|
|
417
|
+
yaml_variables?: boolean;
|
|
418
|
+
/**
|
|
419
|
+
* Variables added for manual pipeline runs and scheduled pipelines are passed to downstream pipelines.
|
|
420
|
+
*/
|
|
421
|
+
pipeline_variables?: boolean;
|
|
422
|
+
};
|
|
423
|
+
} | string;
|
|
424
|
+
inherit?: {
|
|
425
|
+
default?: boolean | ("after_script" | "artifacts" | "before_script" | "cache" | "image" | "interruptible" | "retry" | "services" | "tags" | "timeout")[];
|
|
426
|
+
variables?: boolean | string[];
|
|
427
|
+
};
|
|
428
|
+
/**
|
|
429
|
+
* A path to a directory that contains the files to be published with Pages
|
|
430
|
+
*/
|
|
431
|
+
publish?: string;
|
|
432
432
|
} & JobTemplate1;
|
|
433
433
|
/**
|
|
434
434
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
435
435
|
* via the `definition` "rules".
|
|
436
436
|
*/
|
|
437
437
|
export type Rules = ({
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
438
|
+
if?: If;
|
|
439
|
+
changes?: Changes;
|
|
440
|
+
exists?: Exists;
|
|
441
|
+
variables?: RulesVariables;
|
|
442
|
+
when?: When;
|
|
443
|
+
start_in?: StartIn;
|
|
444
|
+
allow_failure?: AllowFailure;
|
|
445
|
+
needs?: RulesNeeds;
|
|
446
446
|
} | string | string[])[] | null;
|
|
447
447
|
/**
|
|
448
448
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
449
449
|
* via the `definition` "changes".
|
|
450
450
|
*/
|
|
451
451
|
export type Changes = {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
452
|
+
/**
|
|
453
|
+
* List of file paths.
|
|
454
|
+
*/
|
|
455
|
+
paths: string[];
|
|
456
|
+
/**
|
|
457
|
+
* Ref for comparing changes.
|
|
458
|
+
*/
|
|
459
|
+
compare_to?: string;
|
|
460
460
|
} | string[];
|
|
461
461
|
/**
|
|
462
462
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
@@ -473,30 +473,30 @@ export type StartIn = string;
|
|
|
473
473
|
* via the `definition` "allow_failure".
|
|
474
474
|
*/
|
|
475
475
|
export type AllowFailure = boolean | {
|
|
476
|
-
|
|
476
|
+
exit_codes: number;
|
|
477
477
|
} | {
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
478
|
+
/**
|
|
479
|
+
* @minItems 1
|
|
480
|
+
*/
|
|
481
|
+
exit_codes: number[];
|
|
482
482
|
};
|
|
483
483
|
/**
|
|
484
484
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
485
485
|
* via the `definition` "rulesNeeds".
|
|
486
486
|
*/
|
|
487
487
|
export type RulesNeeds = (string | {
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
488
|
+
/**
|
|
489
|
+
* Name of a job that is defined in the pipeline.
|
|
490
|
+
*/
|
|
491
|
+
job: string;
|
|
492
|
+
/**
|
|
493
|
+
* Download artifacts of the job in needs.
|
|
494
|
+
*/
|
|
495
|
+
artifacts?: boolean;
|
|
496
|
+
/**
|
|
497
|
+
* Whether the job needs to be present in the pipeline to run ahead of the current job.
|
|
498
|
+
*/
|
|
499
|
+
optional?: boolean;
|
|
500
500
|
})[];
|
|
501
501
|
/**
|
|
502
502
|
* Filter job by different keywords that determine origin or state, or by supplying string/regex to check against branch/tag names.
|
|
@@ -512,14 +512,14 @@ export type FilterRefs = (("branches" | "tags" | "api" | "external" | "pipelines
|
|
|
512
512
|
* via the `definition` "parallel_matrix".
|
|
513
513
|
*/
|
|
514
514
|
export type ParallelMatrix = {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
515
|
+
/**
|
|
516
|
+
* Defines different variables for jobs that are running in parallel.
|
|
517
|
+
*
|
|
518
|
+
* @maxItems 200
|
|
519
|
+
*/
|
|
520
|
+
matrix: {
|
|
521
|
+
[k: string]: (string | number | any[]) | undefined;
|
|
522
|
+
}[];
|
|
523
523
|
};
|
|
524
524
|
/**
|
|
525
525
|
* Splits up a single job into multiple that run in parallel. Provides `CI_NODE_INDEX` and `CI_NODE_TOTAL` environment variables to the jobs.
|
|
@@ -528,27 +528,27 @@ export type ParallelMatrix = {
|
|
|
528
528
|
* via the `definition` "parallel".
|
|
529
529
|
*/
|
|
530
530
|
export type Parallel = number | {
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
531
|
+
/**
|
|
532
|
+
* Defines different variables for jobs that are running in parallel.
|
|
533
|
+
*
|
|
534
|
+
* @maxItems 200
|
|
535
|
+
*/
|
|
536
|
+
matrix: {
|
|
537
|
+
[k: string]: (string | number | any[]) | undefined;
|
|
538
|
+
}[];
|
|
539
539
|
};
|
|
540
540
|
/**
|
|
541
541
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
542
542
|
* via the `definition` "job_template".
|
|
543
543
|
*/
|
|
544
544
|
export type JobTemplate1 = {
|
|
545
|
-
|
|
546
|
-
|
|
545
|
+
when: "delayed";
|
|
546
|
+
[k: string]: any | undefined;
|
|
547
547
|
} | {
|
|
548
|
-
|
|
549
|
-
[k: string]: any | undefined;
|
|
550
|
-
};
|
|
548
|
+
when?: {
|
|
551
549
|
[k: string]: any | undefined;
|
|
550
|
+
};
|
|
551
|
+
[k: string]: any | undefined;
|
|
552
552
|
};
|
|
553
553
|
/**
|
|
554
554
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
@@ -565,16 +565,16 @@ export type StringFileList = string | string[];
|
|
|
565
565
|
* via the `definition` "filter".
|
|
566
566
|
*/
|
|
567
567
|
export type Filter = null | FilterRefs | {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
568
|
+
refs?: FilterRefs;
|
|
569
|
+
/**
|
|
570
|
+
* Filter job based on if Kubernetes integration is active.
|
|
571
|
+
*/
|
|
572
|
+
kubernetes?: "active";
|
|
573
|
+
variables?: string[];
|
|
574
|
+
/**
|
|
575
|
+
* Filter job creation based on files that were modified in a git push.
|
|
576
|
+
*/
|
|
577
|
+
changes?: string[];
|
|
578
578
|
};
|
|
579
579
|
/**
|
|
580
580
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
@@ -582,188 +582,188 @@ export type Filter = null | FilterRefs | {
|
|
|
582
582
|
*/
|
|
583
583
|
export type Job = JobTemplate1;
|
|
584
584
|
export interface JobVariables {
|
|
585
|
-
|
|
585
|
+
[k: string]: any | undefined;
|
|
586
586
|
}
|
|
587
587
|
/**
|
|
588
588
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
589
589
|
* via the `definition` "globalVariables".
|
|
590
590
|
*/
|
|
591
591
|
export interface GlobalVariables {
|
|
592
|
-
|
|
592
|
+
[k: string]: any | undefined;
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
595
595
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
596
596
|
* via the `definition` "cache".
|
|
597
597
|
*/
|
|
598
598
|
export interface Cache {
|
|
599
|
-
|
|
600
|
-
/**
|
|
601
|
-
* @minItems 1
|
|
602
|
-
* @maxItems 2
|
|
603
|
-
*/
|
|
604
|
-
files?: string[];
|
|
605
|
-
prefix?: string;
|
|
606
|
-
[k: string]: any | undefined;
|
|
607
|
-
};
|
|
608
|
-
paths?: string[];
|
|
609
|
-
policy?: string;
|
|
610
|
-
unprotect?: boolean;
|
|
611
|
-
untracked?: boolean;
|
|
612
|
-
when?: "on_success" | "on_failure" | "always";
|
|
599
|
+
key?: string | {
|
|
613
600
|
/**
|
|
614
|
-
* @
|
|
601
|
+
* @minItems 1
|
|
602
|
+
* @maxItems 2
|
|
615
603
|
*/
|
|
616
|
-
|
|
604
|
+
files?: string[];
|
|
605
|
+
prefix?: string;
|
|
617
606
|
[k: string]: any | undefined;
|
|
607
|
+
};
|
|
608
|
+
paths?: string[];
|
|
609
|
+
policy?: string;
|
|
610
|
+
unprotect?: boolean;
|
|
611
|
+
untracked?: boolean;
|
|
612
|
+
when?: "on_success" | "on_failure" | "always";
|
|
613
|
+
/**
|
|
614
|
+
* @maxItems 5
|
|
615
|
+
*/
|
|
616
|
+
fallback_keys?: string[];
|
|
617
|
+
[k: string]: any | undefined;
|
|
618
618
|
}
|
|
619
619
|
/**
|
|
620
620
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
621
621
|
* via the `definition` "artifacts".
|
|
622
622
|
*/
|
|
623
623
|
export interface Artifacts {
|
|
624
|
+
/**
|
|
625
|
+
* @minItems 1
|
|
626
|
+
*/
|
|
627
|
+
paths?: string[];
|
|
628
|
+
/**
|
|
629
|
+
* @minItems 1
|
|
630
|
+
*/
|
|
631
|
+
exclude?: string[];
|
|
632
|
+
expose_as?: string;
|
|
633
|
+
name?: string;
|
|
634
|
+
untracked?: boolean;
|
|
635
|
+
when?: "on_success" | "on_failure" | "always";
|
|
636
|
+
expire_in?: string;
|
|
637
|
+
reports?: {
|
|
624
638
|
/**
|
|
625
|
-
*
|
|
639
|
+
* Path for file(s) that should be parsed as JUnit XML result
|
|
626
640
|
*/
|
|
627
|
-
|
|
641
|
+
junit?: string | string[];
|
|
628
642
|
/**
|
|
629
|
-
*
|
|
643
|
+
* Path to a single file with browser performance metric report(s).
|
|
630
644
|
*/
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
* Path to file or list of files with secret detection report(s).
|
|
702
|
-
*/
|
|
703
|
-
secret_detection?: string | string[];
|
|
704
|
-
/**
|
|
705
|
-
* Path to file or list of files with custom metrics report(s).
|
|
706
|
-
*/
|
|
707
|
-
metrics?: string | string[];
|
|
708
|
-
/**
|
|
709
|
-
* Path to file or list of files with terraform plan(s).
|
|
710
|
-
*/
|
|
711
|
-
terraform?: string | string[];
|
|
712
|
-
cyclonedx?: string | string[];
|
|
713
|
-
load_performance?: string | string[];
|
|
714
|
-
};
|
|
645
|
+
browser_performance?: string;
|
|
646
|
+
/**
|
|
647
|
+
* Used to collect coverage reports from the job.
|
|
648
|
+
*/
|
|
649
|
+
coverage_report?: {
|
|
650
|
+
/**
|
|
651
|
+
* Code coverage format used by the test framework.
|
|
652
|
+
*/
|
|
653
|
+
coverage_format?: "cobertura";
|
|
654
|
+
/**
|
|
655
|
+
* Path to the coverage report file that should be parsed.
|
|
656
|
+
*/
|
|
657
|
+
path?: string;
|
|
658
|
+
[k: string]: any | undefined;
|
|
659
|
+
} | null;
|
|
660
|
+
/**
|
|
661
|
+
* Path to file or list of files with code quality report(s) (such as Code Climate).
|
|
662
|
+
*/
|
|
663
|
+
codequality?: string | string[];
|
|
664
|
+
/**
|
|
665
|
+
* Path to file or list of files containing runtime-created variables for this job.
|
|
666
|
+
*/
|
|
667
|
+
dotenv?: string | string[];
|
|
668
|
+
/**
|
|
669
|
+
* Path to file or list of files containing code intelligence (Language Server Index Format).
|
|
670
|
+
*/
|
|
671
|
+
lsif?: string | string[];
|
|
672
|
+
/**
|
|
673
|
+
* Path to file or list of files with SAST vulnerabilities report(s).
|
|
674
|
+
*/
|
|
675
|
+
sast?: string | string[];
|
|
676
|
+
/**
|
|
677
|
+
* Path to file or list of files with Dependency scanning vulnerabilities report(s).
|
|
678
|
+
*/
|
|
679
|
+
dependency_scanning?: string | string[];
|
|
680
|
+
/**
|
|
681
|
+
* Path to file or list of files with Container scanning vulnerabilities report(s).
|
|
682
|
+
*/
|
|
683
|
+
container_scanning?: string | string[];
|
|
684
|
+
/**
|
|
685
|
+
* Path to file or list of files with DAST vulnerabilities report(s).
|
|
686
|
+
*/
|
|
687
|
+
dast?: string | string[];
|
|
688
|
+
/**
|
|
689
|
+
* Deprecated in 12.8: Path to file or list of files with license report(s).
|
|
690
|
+
*/
|
|
691
|
+
license_management?: string | string[];
|
|
692
|
+
/**
|
|
693
|
+
* Path to file or list of files with license report(s).
|
|
694
|
+
*/
|
|
695
|
+
license_scanning?: string | string[];
|
|
696
|
+
/**
|
|
697
|
+
* Path to file or list of files with requirements report(s).
|
|
698
|
+
*/
|
|
699
|
+
requirements?: string | string[];
|
|
700
|
+
/**
|
|
701
|
+
* Path to file or list of files with secret detection report(s).
|
|
702
|
+
*/
|
|
703
|
+
secret_detection?: string | string[];
|
|
704
|
+
/**
|
|
705
|
+
* Path to file or list of files with custom metrics report(s).
|
|
706
|
+
*/
|
|
707
|
+
metrics?: string | string[];
|
|
708
|
+
/**
|
|
709
|
+
* Path to file or list of files with terraform plan(s).
|
|
710
|
+
*/
|
|
711
|
+
terraform?: string | string[];
|
|
712
|
+
cyclonedx?: string | string[];
|
|
713
|
+
load_performance?: string | string[];
|
|
714
|
+
};
|
|
715
715
|
}
|
|
716
716
|
/**
|
|
717
717
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
718
718
|
* via the `definition` "hooks".
|
|
719
719
|
*/
|
|
720
720
|
export interface Hooks {
|
|
721
|
-
|
|
721
|
+
pre_get_sources_script?: string | (string | string[])[];
|
|
722
722
|
}
|
|
723
723
|
/**
|
|
724
724
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
725
725
|
* via the `definition` "inputs".
|
|
726
726
|
*/
|
|
727
727
|
export interface Inputs {
|
|
728
|
-
|
|
728
|
+
[k: string]: any | undefined;
|
|
729
729
|
}
|
|
730
730
|
/**
|
|
731
731
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
732
732
|
* via the `definition` "rulesVariables".
|
|
733
733
|
*/
|
|
734
734
|
export interface RulesVariables {
|
|
735
|
-
|
|
735
|
+
[k: string]: any | undefined;
|
|
736
736
|
}
|
|
737
737
|
/**
|
|
738
738
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
739
739
|
* via the `definition` "jobVariables".
|
|
740
740
|
*/
|
|
741
741
|
export interface JobVariables1 {
|
|
742
|
-
|
|
742
|
+
[k: string]: any | undefined;
|
|
743
743
|
}
|
|
744
744
|
/**
|
|
745
745
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
746
746
|
* via the `definition` "id_tokens".
|
|
747
747
|
*/
|
|
748
748
|
export interface IdTokens {
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
749
|
+
/**
|
|
750
|
+
* This interface was referenced by `IdTokens`'s JSON-Schema definition
|
|
751
|
+
* via the `patternProperty` ".*".
|
|
752
|
+
*/
|
|
753
|
+
[k: string]: {
|
|
754
|
+
aud: string | string[];
|
|
755
|
+
};
|
|
756
756
|
}
|
|
757
757
|
/**
|
|
758
758
|
* This interface was referenced by `HttpsGitlabComGitlabCiYml`'s JSON-Schema
|
|
759
759
|
* via the `definition` "secrets".
|
|
760
760
|
*/
|
|
761
761
|
export interface Secrets {
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
}
|
|
762
|
+
/**
|
|
763
|
+
* This interface was referenced by `Secrets`'s JSON-Schema definition
|
|
764
|
+
* via the `patternProperty` ".*".
|
|
765
|
+
*/
|
|
766
|
+
[k: string]: {
|
|
767
|
+
[k: string]: any | undefined;
|
|
768
|
+
};
|
|
769
|
+
}
|