Commit 77d5b5a9 authored by Boris Feld's avatar Boris Feld
Browse files

Import config-express Jenkinsfile from evolve-ci

parents
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}'"
}
}
}
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}'"
}
}
}
#!/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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment