Thanks Baptiste.
I'll detail the XWiki use case.
What we have:
* https://ci.xwiki.org/view/Recommended%20Builds/
* We are using a GitHub Organization job type.
* We have Jenkinsfiles in each repo of the GitHub organization, which all
use a shared global pipeline library (see
https://github.com
Hey Vincent,
I'm still unsure if fully understood what you're trying to achieve.
IIUC, for that stage that should happen only once a day, I guess it
depends. If something gets created there, like an artifact, could you maybe
simply check the timestamp of this artifact, and check it's at least 24
Thanks a lot Slide.
That's an interesting strategy. The problem I see is that we have several
crons (and the cron frequencies are configurable). So ideally we would need
to pass some variable alongside the cron trigger so that we could check
which cron was triggered and build accordingly.
Appa
I do this by checking the thing that caused the build:
@NonCPS
def findBuildType(build) {
def causes = build.causes
def isHourly = causes.any { it -> (it instanceof
hudson.model.Cause.UserIdCause) || (it.class.name.toLowerCase().contains(
'gitlab')) }
return isHourly ? "Hourly" : "Daily"
}
We us
Hi guys,
On XWiki we have a Jenkins pipeline committed in our SCM (in a Jenkinsfile)
which looks like this:
def globalMavenOpts = '-Xmx1536m -XX:MaxPermSize=512m -Xms256m'
stage ('Commons Builds') {
parallel(
'main': {
node {
// Build, skipping quality checks so that the res