style(ci): refactor completely the Jenkinsfile
Proposal to really clean-up the "template" for all 5G NF Jenkins pipelines:
- No more using this
myShCmd
function - Using the
agent
syntax to create a remote workspace - Next is also to push to the local private registry
- Also the lock is not anymore on the whole pipeline but on dedicated stages.
- It will help on decorrelate
build
stages versustest
stages that could be on separate servers
- It will help on decorrelate
Last point I deliberately created the source
branch with 2 commits behind origin/develop
to validate the creation of the remote workspace.