Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3782193
D1895.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1895.diff
View Options
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
--- /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
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 23:30 (21 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2265250
Default Alt Text
D1895.diff (1 KB)
Attached To
Mode
D1895: Deploy site through Jenkins CD
Attached
Detach File
Event Timeline
Log In to Comment