You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This came as a surprise to me when it happened, but it makes perfect sense.
If you
Fork nunit-console and
Set it up to build on AppVeyor and
Build your master branch and
The build succeeds
Then
5. The resulting artifacts are published to the NUnit myget stream.
Well, of course they are! The only test is on the name of the branch and the token is right there in the appveyor.yml file. I should have expected this.
Aside from the obvious problems of unwanted changes being published, the version numbering is completely off because it uses the Appveyor job number from the originating account.
I guess this could be dealt with in two ways...
Just change the logic so the name of the account is checked as well as the branch. This might require putting it into build.cake or maybe some logic can be added to the yml.
Think seriously about getting the access token out of the yml entirely.
I need to figure out what to do in my fork as well, because I'd like to publish to the TestCentric feed for consumption by TestCentric, at least until such time as some fixes get into the engine. If I come up with an approach that will work more generally, I'll post here.
The text was updated successfully, but these errors were encountered:
I was going to ask - is this just because your personal appveyor account is authorised to post to myget? This isn’t the case for all contributors, right?
I thought that might be it but according to my conversation with AppVeyor support, it's because I created both AppVeyor projects! He says that it wouldn't deploy for anybody else's project.
Since this is a one-off thing, it's probably not a big worry but I have a patch we can add to the build script so it only deploys when being run under nunit/nunit-console. I'll post it shortly and we can merge if it doesn't seem like too much overkill.
However, since I appear to be the only person who can cause this bug to appear, it might be enough if I just stop doing it. 😄
This came as a surprise to me when it happened, but it makes perfect sense.
If you
Then
5. The resulting artifacts are published to the NUnit myget stream.
Well, of course they are! The only test is on the name of the branch and the token is right there in the appveyor.yml file. I should have expected this.
Aside from the obvious problems of unwanted changes being published, the version numbering is completely off because it uses the Appveyor job number from the originating account.
I guess this could be dealt with in two ways...
Just change the logic so the name of the account is checked as well as the branch. This might require putting it into build.cake or maybe some logic can be added to the yml.
Think seriously about getting the access token out of the yml entirely.
I need to figure out what to do in my fork as well, because I'd like to publish to the TestCentric feed for consumption by TestCentric, at least until such time as some fixes get into the engine. If I come up with an approach that will work more generally, I'll post here.
The text was updated successfully, but these errors were encountered: