Compare commits

...

2 Commits

Author SHA1 Message Date
andrzej 2011f162cd add base url
Gitea/movie-explorer/pipeline/head There was a failure building this commit Details
2024-05-26 16:19:36 +02:00
andrzej dd7078550f add build and deploy steps 2024-05-26 16:19:26 +02:00
2 changed files with 10 additions and 5 deletions

11
Jenkinsfile vendored
View File

@ -1,10 +1,15 @@
pipeline {
agent any
stages {
stage('Do nothing') {
stage('build'){
steps{
sh '/bin/true'
sh 'npm install'
sh 'npm run build'
}
}
stage('deploy'){
steps{
sshPublisher(publishers: [sshPublisherDesc(configName: 'Demos', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'ssh-uploads/movie-explorer', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'dist/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
}
}

View File

@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "tsc && vite build --base=/movie-explorer/",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},