Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
feat(build): saving build id in the file build.id
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jul 7, 2016
1 parent 7fb1598 commit b33f077
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/generate-gitlab-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,19 @@ function generateGitLabCiFile (outputFolder, specFiles, dockerImage,

gitlabFile +=
`
# save current build job id to kind of tie together multiple test jobs
# because GitLab CI api does not expose the pipeline ID
# pass the saved id through the file
build-specs:
stage: build
script:
- echo $CI_BUILD_ID > build.id
- npm install --quiet
- npm test
- npm run build
artifacts:
paths:
- build.id
- ${outputFolder}
# Common build job definition using GitLab YAML features
Expand Down

0 comments on commit b33f077

Please sign in to comment.