feat: initial commit
All checks were successful
kouiz/pipeline/head This commit looks good

This commit is contained in:
2025-06-15 23:54:49 +02:00
parent 00c7020ca5
commit dadb4609b0

20
Jenkinsfile vendored
View File

@ -44,7 +44,7 @@ pipeline {
${callToAction}
> [Répondre à la question du jour](https://kouiz.dev.lookingfora.name/) <
[Répondre à la question du jour](https://kouiz.dev.lookingfora.name/)
""".stripIndent(),
rawMessage: true,
attachements: [
@ -54,7 +54,25 @@ pipeline {
)
}
} else {
String leaderboard = sh(script: "curl https://kouiz.dev.lookingfora.name/api/presentation/leaderboard", returnStdout: true)
if (leaderboard) {
rocketSend(
avatar: "https://kouiz.dev.lookingfora.name/assets/panda.png",
channel: '#le-kouiz',
message: """
@here
${leaderboard}
[Voir les scores](https://kouiz.dev.lookingfora.name/api/presentation/leaderboard)
""".stripIndent(),
rawMessage: true,
attachements: [
authorIcon: "https://kouiz.dev.lookingfora.name/assets/panda.png",
authorName: "Panda Kouiz"
]
)
}
}
}
}