Always sync submodules before the SCM step to handle coreboot adding
new submodules. This is needed because coreboot uses relative paths for
submodules, so git tries to clone it from the System76 GitHub
organization. We are not mirroring submodules and want to clone from
gerrit.
Signed-off-by: Tim Crawford <tcrawford@system76.com>
- Use `GIT_COMMIT` instead of stashing the commit
- Do not shadow built-in `GIT_BRANCH` variable with a parameter
- Update `scmGit` config based on docs
Signed-off-by: Tim Crawford <tcrawford@system76.com>
The scripted projects using the default Slack notifications settings
report the time the build took. Add it to the declarative jobs as well.
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Misc fixes to the Jenkinsfile that came up while setting up the new
Pipeline job on the build server.
The polling schedule is removed from the trigger because it was always
detecting a change and building.
Signed-off-by: Tim Crawford <tcrawford@system76.com>