Comments (9)
hi @rohit-gohri, thanks for opening a ticket for the missing env-ci service!
Instead of my build failing because of that, wouldn't it be better if we let the build continue and instead don't send any stats as sending a stats report isn't vital to the build.
Agree, the agent should not throw, but just show a warning.
from agent.
Amazing 👏
In the meantime I released @relative-ci/[email protected]
with a dependency to https://github.com/relative-ci/env-ci
from agent.
@rohit-gohri missed to update the import, please use 1.3.0-beta.6
.
from agent.
Great! Closing the issue as the main problem of errors is fixed 😄
from agent.
@rohit-gohri You can try to use @relative-ci/[email protected]
.
Regarding env-ci support for Netlify, I subscribed to the ticket and will update the dependency once it will be updated.
In the meantime, I am considering forking and releasing @relative-ci/env-ci
with Netlify support (if you do have the PR ready, will be more than happy to merge it).
Another temporary option is to map Netlify env variables to an existing services, here is an example for Now:
// now.js
if (process.env.NOW_BUILDER) {
process.env.CI = true;
process.env.CIRCLECI = true;
process.env.CIRCLE_BRANCH = process.env.NOW_GITHUB_COMMIT_REF;
process.env.CIRCLE_SHA1 = process.env.NOW_GITHUB_COMMIT_SHA;
process.env.CIRCLE_PROJECT_REPONAME = process.env.NOW_GITHUB_COMMIT_REPO;
process.env.CIRCLE_PROJECT_USERNAME = process.env.NOW_GITHUB_COMMIT_ORG;
}
from agent.
@rohit-gohri You can try to use
@relative-ci/[email protected]
.
Will do. That was fast 👍
In the meantime, I am considering forking and releasing
@relative-ci/env-ci
with Netlify support (if you do have the PR ready, will be more than happy to merge it).
I'll be able to do it by tomorrow 😅
from agent.
In the meantime, I am considering forking and releasing
@relative-ci/env-ci
with Netlify support (if you do have the PR ready, will be more than happy to merge it).I'll be able to do it by tomorrow sweat_smile
You can pull the changes from here : https://github.com/rohit-gohri/env-ci/tree/netlify
Or let's just wait if env-ci one get's merged
from agent.
@rohit-gohri You can try to use
@relative-ci/[email protected]
.
Warnings worked correctly:
warning ERROR: "branch" environment variable is missing, make sure the agent is setup correctly! Read more about RelativeCI agent setup at https://relative-ci.com/documentation/setup.
from agent.
I used patch-package to test semantic-release/env-ci#126 and it works: https://app.relative-ci.com/projects/kki0Wz9wbvGQVMX73Tjc/jobs/1-d4edd437-dd7f-4857-9811-f38619a00620 🎉
from agent.
Related Issues (20)
- Clarify usage when CI env variables are missing HOT 1
- Prevent error when git is not available
- Buildkite - extract repository slug
- Add support for nextjs build-manifest.json HOT 1
- Error showing in jsconfig.json HOT 2
- Add silent option for logs HOT 4
- upgrade webpack peer dep to 5+ HOT 2
- regen api key HOT 3
- error when building @relative-ci/agent library HOT 5
- Import bundle-stats plugins
- Allow to pass env variables as arguments
- Debug payload
- Handle timeout error
- Drop support for node 10
- Propagate args from Webpack plugin HOT 7
- Add support for custom config directory
- Jenkins does not provide SLUG environment variable
- Feature Request: Non-zero exit code if there are errors HOT 10
- Agent - monorepo setup HOT 7
- Send fork owner HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agent.