You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Prepare') {
|
|
steps {
|
|
sh '''cp -r /root/.env.client .env.client
|
|
cp -r /root/.env.seed .env.seed'''
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
sh '''git submodule update --init --recursive
|
|
rm -rf build
|
|
mkdir build
|
|
cd build
|
|
cmake ..
|
|
cmake --build . --target marketmaker-testnet -j 4
|
|
cd ../
|
|
docker-compose build'''
|
|
}
|
|
}
|
|
stage('Trade BEER/ETH') {
|
|
steps {
|
|
sh '''docker-compose up -d
|
|
./start_BEER_OTHER_trade.sh ETH
|
|
timeout 600 grep -q "SWAP completed" <(COMPOSE_HTTP_TIMEOUT=600 docker-compose logs -f clientnode)
|
|
timeout 600 grep -q "SWAP completed" <(COMPOSE_HTTP_TIMEOUT=600 docker-compose logs -f seednode)
|
|
docker-compose down'''
|
|
}
|
|
}
|
|
stage('Trade ETH/BEER') {
|
|
steps {
|
|
sh '''docker-compose up -d
|
|
./start_BEER_OTHER_trade_inverted.sh ETH
|
|
timeout 600 grep -q "SWAP completed" <(COMPOSE_HTTP_TIMEOUT=600 docker-compose logs -f clientnode)
|
|
timeout 600 grep -q "SWAP completed" <(COMPOSE_HTTP_TIMEOUT=600 docker-compose logs -f seednode)
|
|
docker-compose down'''
|
|
}
|
|
}
|
|
}
|
|
}
|