Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4063657
D1986.id.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
D1986.id.diff
View Options
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,47 @@
+pipeline {
+ agent {
+ label "node"
+ }
+
+ stages {
+ stage('Doc') {
+ steps {
+ git 'https://devcentral.nasqueron.org/source/infra-www.git'
+
+ sh '''
+ npm install
+ npm run build
+ cd dist
+ tar czf ../www-nasqueron-infra.tar.gz *
+ '''
+ }
+ post {
+ success {
+ archiveArtifacts artifacts: 'www-nasqueron-infra.tar.gz'
+ }
+ }
+ }
+
+ stage('Publish') {
+ steps {
+ sshPublisher(
+ failOnError: true,
+ publishers: [
+ sshPublisherDesc(
+ configName: 'ysul-deploy',
+ transfers: [
+ sshTransfer(
+ sourceFiles: 'www-nasqueron-infra.tar.gz',
+ remoteDirectory: 'workspace',
+ cleanRemote: true,
+ execCommand: 'tar xzvf workspace/www-nasqueron-infra.tar.gz -C /var/wwwroot/nasqueron.org/infra/'
+ )
+ ]
+ )
+ ]
+ )
+ }
+ }
+ }
+}
+
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 28, 05:16 (9 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2378403
Default Alt Text
D1986.id.diff (1 KB)
Attached To
Mode
D1986: Provide pipeline as code to deploy through Jenkins
Attached
Detach File
Event Timeline
Log In to Comment