-
Hi, I am new to setting DevOps. I managed so far setup my few stages in Jenkins which works. Few weeks ago I heard about NUKE which is C# based, great. Unfortunately due to missing knowledge and failed to find in documentation I request your help. Is NUKE meant to replace Jenkins pipeline syntax? So far I thought its possible to do all that steps based on few tutorials. However tutorails shows just basic stuff and they strictly rely on GitHub Actions. My current setup is Jenkins which triggers pipeline by GitHub webhook on commit. Steps:
Basically on webhook trigger I do repository checkout, then clean > build > package > archive. Right now I am not deploying anything, which I would like soon to get done. Question is how to move this entire pipeline into NUKE. I would probably manage easier getting done Package and Archive Artifacts steps. Not quite sure how to make run NUKE build on GitHub webhook trigger in Jenkins. Certainly not sure how to do repository checkout using NUKE. Can you guide me on this one? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Nuke does not fully replace your |
Beta Was this translation helpful? Give feedback.
-
Thanks for reply. I managed to figure it out as I found this article which really help me out. https://anktsrkr.github.io/post/write-your-first-building-block-in-nuke/ Now I know I can get rid of command like "dotnet build", replace my package stage etc. but still keep my Checkout stage. |
Beta Was this translation helpful? Give feedback.
Nuke does not fully replace your
jenkinsfile
. Steps like checking out the repository still have to be defined as previously, but you get easier implementation for anything from calling .NET CLI, packaging artifacts, and deploying them somewhere. To invoke the build project, you just callbuild.cmd
in yourjenkinsfile
.