Open martintschemernjak opened 4 years ago
I got this, too. Any resolutions? (I tried upgrading to NS 7, which ended with #17 )
This error is generated when
const followRepoResponse = await this.$httpClient.httpRequest({
url: `https://circleci.com/api/v1.1/project/github/${this.gitRepositoryName}/follow?circle-token=${this.circleCiApiAccessToken}`,
method: "POST"
});
fails. Barring a network or server issue, the problem is likely the CIRCLE_CI_API_ACCESS_TOKEN.
Set one here: https://app.circleci.com/settings/user/tokens
And make sure it's the one entered in nsremote.env.json
:
{
"local": {
"CIRCLE_CI_API_ACCESS_TOKEN": "*******************************************"
},
"remote": {
...
}}
I believe that nativescript-remote-builds creates its own .config.yml
. Although, like you, I got movement when I created one.
We used the "httpsRepositoryURL": "https://github.com/<account name>/<repo name>.git"
format in nsremote.config.json
.
The remote service is also looking for a GITHUB_ACCESS_TOKEN, either in nsremove.env.json
, or on your machine.
One other remark on the failed integration can be found here:
Hi,
I followed the tutorial but i can not get it to work... I'm on a windows machine and i try to build a nativescript app for ios.
This is how my .nsremote.config.json looks like:
{ "circleci": { "sshRepositoryURL": "git@github.com:**********************************.git" } }
my .nsremote.env.json:
{ "local": { "CIRCLE_CI_API_ACCESS_TOKEN": "**********************************" } }
I followed the setup for CircleCI, created an account there, linked it to my Github account and uploaded a ssh key. The same ssh key i have localy.
If I try to build the app with tns build ios, I get the following message:
If I take a look into CircleCI I see that the build failed, but the error message there is the following:
If I now create a .circleci/config.yml file like this:
the build runs through on CircleCI, but I still get the error message "Unable to integrate the project" like above.
So my questions are now:
Thank you very much, Best regards, Martin