Page MenuHomeDevCentral

No OneTemporary

diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..d1e0869
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,46 @@
+pipeline {
+ agent {
+ label "node"
+ }
+
+ stages {
+ stage('Doc') {
+ steps {
+ git 'https://devcentral.nasqueron.org/source/docs-www.git'
+
+ sh '''
+ npm install
+ npm run build
+ cd dist
+ tar czf ../www-nasqueron-docs.tar.gz *
+ '''
+ }
+ post {
+ success {
+ archiveArtifacts artifacts: 'www-nasqueron-docs.tar.gz'
+ }
+ }
+ }
+
+ stage('Publish') {
+ steps {
+ sshPublisher(
+ failOnError: true,
+ publishers: [
+ sshPublisherDesc(
+ configName: 'ysul-deploy',
+ transfers: [
+ sshTransfer(
+ sourceFiles: 'www-nasqueron-docs.tar.gz',
+ remoteDirectory: 'workspace',
+ cleanRemote: true,
+ execCommand: 'tar xzvf workspace/www-nasqueron-docs.tar.gz -C /var/wwwroot/nasqueron.org/docs/'
+ )
+ ]
+ )
+ ]
+ )
+ }
+ }
+ }
+}

File Metadata

Mime Type
text/x-diff
Expires
Sun, Nov 24, 19:31 (3 h, 5 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258766
Default Alt Text
(1 KB)

Event Timeline