2020-02-17 17:24:13 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
2020-05-21 22:50:38 +02:00
|
|
|
stage('Cake Build') {
|
2020-02-17 17:24:13 +01:00
|
|
|
steps {
|
2020-05-21 22:51:31 +02:00
|
|
|
sh 'chmod +x ./build.sh'
|
2020-05-22 01:44:47 +02:00
|
|
|
sh './build.sh -Target=Publish -Branch=' + env.BRANCH_NAME
|
2020-02-17 17:24:13 +01:00
|
|
|
}
|
|
|
|
}
|
2020-05-21 22:50:38 +02:00
|
|
|
stage('Document') {
|
|
|
|
when {
|
2020-04-11 03:21:55 +02:00
|
|
|
branch 'release'
|
2020-03-05 00:41:29 +01:00
|
|
|
}
|
2020-02-21 13:41:33 +01:00
|
|
|
steps {
|
2020-05-21 23:07:43 +02:00
|
|
|
sh './build.sh -Target=Document'
|
|
|
|
sh 'cp Docs/_site/** /var/www/MLEM/ -r'
|
2020-05-21 01:57:28 +02:00
|
|
|
}
|
2020-02-21 13:41:33 +01:00
|
|
|
}
|
2020-02-17 17:24:13 +01:00
|
|
|
}
|
2020-02-26 10:26:22 +01:00
|
|
|
environment {
|
|
|
|
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
|
2020-04-11 03:21:55 +02:00
|
|
|
NUGET = credentials('e1bf7f6c-6047-4f7e-b639-15240a8f8351')
|
2020-02-26 10:26:22 +01:00
|
|
|
}
|
2020-03-05 00:41:29 +01:00
|
|
|
}
|