Skip to content

Commit

Permalink
WIP jenkins pipeline: add stage timout, zip and group artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Dec 17, 2023
1 parent 01b43ac commit 18521c0
Showing 1 changed file with 54 additions and 66 deletions.
120 changes: 54 additions & 66 deletions assembly/cicd/jenkins/test-builds.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ pipeline {
chmod +x llvm.sh
sudo ./llvm.sh 16 all
*/
sh '''
timeout(time: 60, unit: 'MINUTES') {
sh '''
cp assembly/native/build-ubuntu-20.04-shared.sh .
chmod +x build-ubuntu-20.04-shared.sh
./build-ubuntu-20.04-shared.sh -t -a
'''
}
post {
always {
archiveArtifacts artifacts: 'artifacts/*'
'''
sh 'zip -r ton-x86_64-linux-shared ./artifacts/*'
archiveArtifacts artifacts: 'ton-x86_64-linux-shared.zip'
}
}
}
Expand All @@ -32,15 +31,14 @@ pipeline {
label 'Ubuntu_x86-64'
}
steps {
sh '''
timeout(time: 60, unit: 'MINUTES') {
sh '''
cp assembly/native/build-ubuntu-20.04-portable.sh .
chmod +x build-ubuntu-20.04-portable.sh
./build-ubuntu-20.04-portable.sh -t -a
'''
}
post {
always {
archiveArtifacts artifacts: 'artifacts/*'
'''
sh 'zip -r ton-x86_64-linux-portable ./artifacts/*'
archiveArtifacts artifacts: 'ton-x86_64-linux-portable.zip'
}
}
}
Expand All @@ -49,15 +47,14 @@ pipeline {
label 'Ubuntu_arm64'
}
steps {
sh '''
timeout(time: 60, unit: 'MINUTES') {
sh '''
cp assembly/native/build-ubuntu-20.04-shared.sh .
chmod +x build-ubuntu-20.04-shared.sh
./build-ubuntu-20.04-shared.sh -t -a
'''
}
post {
always {
archiveArtifacts artifacts: 'artifacts/*'
'''
sh 'zip -r ton-arm64-linux-shared ./artifacts/*'
archiveArtifacts artifacts: 'ton-arm64-linux-shared.zip'
}
}
}
Expand All @@ -66,15 +63,14 @@ pipeline {
label 'Ubuntu_arm64'
}
steps {
sh '''
timeout(time: 60, unit: 'MINUTES') {
sh '''
cp assembly/native/build-ubuntu-20.04-portable.sh .
chmod +x build-ubuntu-20.04-portable.sh
./build-ubuntu-20.04-portable.sh -t -a
'''
}
post {
always {
archiveArtifacts artifacts: 'artifacts/*'
'''
sh 'zip -r ton-arm64-linux-portable ./artifacts/*'
archiveArtifacts artifacts: 'ton-arm64-linux-portable.zip'
}
}
}
Expand All @@ -83,15 +79,14 @@ pipeline {
label 'macOS_12.7_x86-64'
}
steps {
sh '''
timeout(time: 60, unit: 'MINUTES') {
sh '''
cp assembly/native/build-macos-shared.sh .
chmod +x build-macos-shared.sh
./build-macos-shared.sh -t -a
'''
}
post {
always {
archiveArtifacts artifacts: 'artifacts/*'
'''
sh 'zip -r ton-x86-64-macos-shared ./artifacts/*'
archiveArtifacts artifacts: 'ton-x86-64-macos-shared.zip'
}
}
}
Expand All @@ -100,15 +95,14 @@ pipeline {
label 'macOS_12.7_x86-64'
}
steps {
sh '''
timeout(time: 60, unit: 'MINUTES') {
sh '''
cp assembly/native/build-macos-portable.sh .
chmod +x build-macos-portable.sh
./build-macos-portable.sh -t -a -o 12.7
'''
}
post {
always {
archiveArtifacts artifacts: 'artifacts/*'
'''
sh 'zip -r ton-x86-64-macos-portable ./artifacts/*'
archiveArtifacts artifacts: 'ton-x86-64-macos-portable.zip'
}
}
}
Expand All @@ -117,15 +111,14 @@ pipeline {
label 'macOS_12.6.3-arm64'
}
steps {
sh '''
timeout(time: 60, unit: 'MINUTES') {
sh '''
cp assembly/native/build-macos-shared.sh .
chmod +x build-macos-shared.sh
./build-macos-shared.sh -t -a
'''
}
post {
always {
archiveArtifacts artifacts: 'artifacts/*'
'''
sh 'zip -r ton-arm64-m1-macos-shared ./artifacts/*'
archiveArtifacts artifacts: 'ton-arm64-m1-macos-shared.zip'
}
}
}
Expand All @@ -134,15 +127,14 @@ pipeline {
label 'macOS_12.6.3-arm64'
}
steps {
sh '''
timeout(time: 60, unit: 'MINUTES') {
sh '''
cp assembly/native/build-macos-portable.sh .
chmod +x build-macos-portable.sh
./build-macos-portable.sh -t -a -o 12.6
'''
}
post {
always {
archiveArtifacts artifacts: 'artifacts/*'
'''
sh 'zip -r ton-arm64-m1-macos-portable ./artifacts/*'
archiveArtifacts artifacts: 'ton-arm64-m1-macos-portable.zip'
}
}
}
Expand All @@ -151,15 +143,14 @@ pipeline {
label 'macOS_13.2-arm64-m2'
}
steps {
sh '''
timeout(time: 60, unit: 'MINUTES') {
sh '''
cp assembly/native/build-macos-shared.sh .
chmod +x build-macos-shared.sh
./build-macos-shared.sh -t -a
'''
}
post {
always {
archiveArtifacts artifacts: 'artifacts/*'
'''
sh 'zip -r ton-arm64-m2-macos-shared ./artifacts/*'
archiveArtifacts artifacts: 'ton-arm64-m2-macos-shared.zip'
}
}
}
Expand All @@ -168,15 +159,14 @@ pipeline {
label 'macOS_13.2-arm64-m2'
}
steps {
sh '''
timeout(time: 60, unit: 'MINUTES') {
sh '''
cp assembly/native/build-macos-portable.sh .
chmod +x build-macos-portable.sh
./build-macos-portable.sh -t -a -o 13.2
'''
}
post {
always {
archiveArtifacts artifacts: 'artifacts/*'
'''
sh 'zip -r ton-arm64-m2-macos-portable ./artifacts/*'
archiveArtifacts artifacts: 'ton-arm64-m2-macos-portable.zip'
}
}
}
Expand All @@ -185,16 +175,14 @@ pipeline {
label 'Windows_x86-64'
}
steps {
bat '''
timeout(time: 60, unit: 'MINUTES') {
bat '''
copy assembly\\native\\build-windows-github.bat .
copy assembly\\native\\build-windows.bat .
build-windows-github.bat
'''
bat 'git branch'
}
post {
always {
archiveArtifacts artifacts: 'artifacts\\*'
sh 'zip -r ton-x86-64-windows ./artifacts/*'
archiveArtifacts artifacts: 'ton-x86-64-windows.zip'
}
}
}
Expand Down

0 comments on commit 18521c0

Please sign in to comment.