2020-05-04 20:47:01 +02:00
|
|
|
/*
|
2020-05-17 19:00:53 +02:00
|
|
|
* Copyright (C) Sapphirecode - All Rights Reserved
|
|
|
|
* This file is part of standard which is released under MIT.
|
2020-05-04 20:47:01 +02:00
|
|
|
* See file 'LICENSE' for full license details.
|
2020-05-17 19:00:53 +02:00
|
|
|
* Created by Timo Hocker <timo@scode.ovh>, May 2020
|
2020-05-04 20:47:01 +02:00
|
|
|
*/
|
|
|
|
|
2020-05-04 12:20:14 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = `pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
environment {
|
|
|
|
VERSION = VersionNumber([
|
|
|
|
versionNumberString:
|
|
|
|
'\${BUILDS_ALL_TIME}',
|
|
|
|
versionPrefix: '1.0.',
|
|
|
|
worstResultForIncrement: 'SUCCESS'
|
|
|
|
])
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Building') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
currentBuild.displayName = env.VERSION
|
|
|
|
}
|
|
|
|
sh 'yarn ci \${VERSION}'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|