Skip to content

Commit

Permalink
feat: define CI_BUILDS_DIR predefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ANGkeith committed Feb 2, 2025
1 parent 7c5c91d commit c3250cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/predefined-variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function init ({gitData, argv, envMatchedVariables}: PredefinedVariablesO
GITLAB_USER_EMAIL: gitData.user["GITLAB_USER_EMAIL"],
GITLAB_USER_NAME: gitData.user["GITLAB_USER_NAME"],
GITLAB_USER_ID: gitData.user["GITLAB_USER_ID"],
CI_BUILDS_DIR: "/gcl-builds",
CI_COMMIT_SHORT_SHA: gitData.commit.SHA.slice(0, 8), // Changes
CI_COMMIT_SHA: gitData.commit.SHA,
CI_PROJECT_NAME: gitData.remote.project,
Expand Down
1 change: 1 addition & 0 deletions tests/test-cases/predefined-variables/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const mockDate = "2020-01-05T00:00:00Z";
const envVars: {[key: string]: string} = {
CI: "true",
CI_API_V4_URL: "https://gitlab.com/api/v4",
CI_BUILDS_DIR: "/gcl-builds",
CI_COMMIT_BRANCH: "master",
CI_COMMIT_DESCRIPTION: "More commit text",
CI_COMMIT_MESSAGE: "Commit Title",
Expand Down

0 comments on commit c3250cf

Please sign in to comment.