Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
public
octobus-extensions-ci
Commits
ba4507b4358b
Commit
77d5b5a9
authored
Sep 04, 2019
by
Boris Feld
Browse files
Import config-express Jenkinsfile from evolve-ci
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile_config_express
0 → 100644
View file @
ba4507b4
pipeline {
agent { label 'gcloud-public' }
environment {
HGTEST_PORT = Integer.toString(Math.abs((new Random().nextInt() % 8000) * 5) + 20000)
}
stages {
stage('Checkout Mercurial') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://www.mercurial-scm.org/repo/hg/', clean: true, disableChangeLog: false, subdir: 'mercurial'])
}
}
stage('Build Mercurial') {
steps {
dir("mercurial") {
sh "make local";
}
}
}
stage('Checkout Format-Source') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://bitbucket.org/Mathiasdm/hg-configexpress/', clean: true, disableChangeLog: false, subdir: 'config-express'])
}
}
stage("Compiled tests") {
steps {
dir("config-express/tests") {
catchError {
sh "echo $HGTEST_PORT"
sh "../../mercurial/tests/run-tests.py -l"
}
}
}
}
}
post {
failure {
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'boris.feld@octobus.net pierre-yves.david@octobus.net', sendToIndividuals: false])
sh "CHANNEL=octobus-hg ./irc_notification.sh 'Config-Express build is broken, see ${BUILD_URL}'"
}
}
}
Jenkinsfile_config_express_stable
0 → 100644
View file @
ba4507b4
pipeline {
agent { label 'gcloud-public' }
environment {
HGTEST_PORT = Integer.toString(Math.abs((new Random().nextInt() % 8000) * 5) + 20000)
}
stages {
stage('Checkout Mercurial') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://www.mercurial-scm.org/repo/hg/', clean: true, disableChangeLog: false, subdir: 'mercurial', 'revision': 'stable'])
}
}
stage('Build Mercurial') {
steps {
dir("mercurial") {
sh "make local";
}
}
}
stage('Checkout Format-Source') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://bitbucket.org/Mathiasdm/hg-configexpress/', clean: true, disableChangeLog: false, subdir: 'config-express'])
}
}
stage("Compiled tests") {
steps {
dir("config-express/tests") {
catchError {
sh "echo $HGTEST_PORT"
sh "../../mercurial/tests/run-tests.py -l"
}
}
}
}
}
post {
failure {
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'boris.feld@octobus.net pierre-yves.david@octobus.net', sendToIndividuals: false])
sh "CHANNEL=octobus-hg ./irc_notification.sh 'Config-Express-Stable build is broken, see ${BUILD_URL}'"
}
}
}
irc_notification.sh
0 → 100755
View file @
ba4507b4
#!/bin/bash
set
-euox
pipefail
MSG
=
$1
SERVER
=
irc.freenode.net
CHANNEL
=
"
${
CHANNEL
:-
hg
-evolve
}
"
USER
=
octobus-ci
(
echo
NICK
$USER
echo
USER
$USER
8 x :
$USER
sleep
1
#echo PASS $USER:$MYPASSWORD
echo
"JOIN #
$CHANNEL
"
echo
"PRIVMSG #
$CHANNEL
"
:
$MSG
echo
QUIT
)
| nc
$SERVER
6667
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment