Commit 0415d7a2 authored by Boris Feld's avatar Boris Feld
Browse files

Import Octobus extensions job definitions

parent ba4507b4358b
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 Docgraph') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://bitbucket.org/octobus/mercurial_docgraph/', clean: true, disableChangeLog: false, subdir: 'docgraph'])
}
}
stage('Install dependencies') {
steps {
dir("docgraph") {
sh "virtualenv .venv"
sh ".venv/bin/pip install ."
}
}
}
stage("Compiled tests") {
steps {
dir("docgraph/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 'Docgraph 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 Evolve') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://www.mercurial-scm.org/repo/evolve/', clean: true, disableChangeLog: false, subdir: 'evolve'])
}
}
stage("Compiled tests") {
steps {
dir("evolve/tests") {
catchError {
sh "echo $HGTEST_PORT"
sh "../../mercurial/tests/run-tests.py -l -t 1200"
}
}
}
}
}
post {
failure {
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'boris.feld@octobus.net pierre-yves.david@octobus.net', sendToIndividuals: false])
sh "./irc_notification.sh 'Evolve 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 Evolve') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://www.mercurial-scm.org/repo/evolve/', clean: true, disableChangeLog: false, subdir: 'evolve', 'revision': 'stable'])
}
}
stage('Run evolve tests') {
steps {
dir("evolve/tests") {
catchError {
sh "echo $HGTEST_PORT"
sh "../../mercurial/tests/run-tests.py -l -t 1200"
}
}
}
}
}
post {
failure {
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'boris.feld@octobus.net pierre-yves.david@octobus.net', sendToIndividuals: false])
sh "./irc_notification.sh 'Evolve 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 Evolve') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://www.mercurial-scm.org/repo/evolve/', clean: true, disableChangeLog: false, subdir: 'evolve'])
}
}
stage("Pure tests") {
steps {
dir("evolve/tests") {
catchError {
sh "echo $HGTEST_PORT"
sh "../../mercurial/tests/run-tests.py --pure -l -t 1200"
}
}
}
}
}
post {
failure {
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'boris.feld@octobus.net pierre-yves.david@octobus.net', sendToIndividuals: false])
sh "./irc_notification.sh 'Evolve 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('Checkout Evolve') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://www.mercurial-scm.org/repo/evolve/', clean: true, disableChangeLog: false, subdir: 'evolve'])
}
}
stage("Compiled tests") {
steps {
dir("evolve/tests") {
catchError {
sh "echo $HGTEST_PORT"
sh "python3 ../../mercurial/tests/run-tests.py -t 1200"
}
}
}
}
}
post {
failure {
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'boris.feld@octobus.net pierre-yves.david@octobus.net', sendToIndividuals: false])
sh "./irc_notification.sh 'Evolve 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 Format-Source') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://bitbucket.org/octobus/format-source/', clean: true, disableChangeLog: false, subdir: 'format-source'])
}
}
stage("Compiled tests") {
steps {
dir("format-source/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 'Format-Source 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/octobus/format-source/', clean: true, disableChangeLog: false, subdir: 'format-source'])
}
}
stage("Compiled tests") {
steps {
dir("format-source/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 'Format-Source-Stable build is broken, see ${BUILD_URL}'"
}
}
}
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