add jenkinsfile

This commit is contained in:
Timo Hocker 2020-05-04 12:20:14 +02:00
parent d418ef9e90
commit 328d734e24
2 changed files with 28 additions and 1 deletions

26
asset_jenkinsfile.js Normal file
View File

@ -0,0 +1,26 @@
'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}'
}
}
}
}
`;

View File

@ -1,8 +1,9 @@
'use strict';
const jenkins = require ('./asset_jenkins');
const jenkinsfile = require ('./asset_jenkinsfile');
const files = { jenkins };
const files = { jenkins, jenkinsfile };
const scripts = {
lint: 'eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs',