Commit ce82ab44 authored by Boris Feld's avatar Boris Feld
Browse files

Import Mercurial third-parties extensions build files

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 Hg-Git') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://lothiraldan@bitbucket.org/durin42/hg-git', clean: true, disableChangeLog: false, subdir: 'hg-git'])
}
}
stage('Install dependencies') {
steps {
dir("hg-git") {
sh "virtualenv .venv"
sh ".venv/bin/pip install ."
}
}
}
stage("Compiled tests") {
steps {
dir("hg-git/tests") {
catchError {
sh "echo $HGTEST_PORT"
sh "../.venv/bin/python ../../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 'Hg-Git 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'])
}
}
stage('Build Mercurial') {
steps {
dir("mercurial") {
sh "make local";
}
}
}
stage('Checkout Hg-Git') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://lothiraldan@bitbucket.org/Mekk/mercurial_keyring', clean: true, disableChangeLog: false, subdir: 'keyring'])
}
}
stage('Install dependencies') {
steps {
dir("keyring") {
sh "virtualenv .venv"
sh ".venv/bin/pip install ."
}
}
}
stage("Compiled tests") {
steps {
dir("keyring/tests") {
catchError {
sh "echo $HGTEST_PORT"
sh "../.venv/bin/python ../../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 'Keyring 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
Supports Markdown
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