nci icon indicating copy to clipboard operation
nci copied to clipboard

Builds without scm

Open neoromantique opened this issue 6 years ago • 4 comments

Hi, I'd love to have ability to run scripts without scm since I do scm management in my scripts and I only need nci as a runner. Is it possible to do so?

neoromantique avatar Feb 26 '18 01:02 neoromantique

Unfortunately currently it's not possible - only git and mercurial scm are supported. It requires some dummy fs scm class implementation which I don't want to add to the core. Looks like it's good to have pluggable scm's but currently it's not.

okv avatar Feb 27 '18 13:02 okv

But what's the problem with adding a dummy that would essentially act as scm: none? It makes it easier to adjust nci for different workflows.

Because right now the way it works is it clones the repo once in nci and then it clones it again in buildscripts.

neoromantique avatar Feb 28 '18 14:02 neoromantique

Generally it's ok, I just wanted to move scm's to plugins first. But I don't have enough time to do that, so if there will be nice merge request (with tests (there could be a problem to integrate scm/none with current scm tests), etc) for scm/none, I will definitely look at that =) p.s. Sorry for my late reply.

okv avatar Mar 09 '18 21:03 okv

Okay, I'll look into making a PR for it.

neoromantique avatar Mar 10 '18 00:03 neoromantique