Page MenuHomeDevCentral

D3439.diff
No OneTemporary

D3439.diff

diff --git a/Jenkinsfile b/Jenkinsfile
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,32 +1,40 @@
+/* -------------------------------------------------------------
+ Deploy www.nasqueron.org
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Project: Nasqueron
+ Description: Jenkins CD pipeline to deploy through Alkane
+ License: BSD-2-Clause
+ ------------------------------------------------------------- */
+
+/* -------------------------------------------------------------
+ Alkane context
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
+
+def context = """
+ {
+ "url": "https://devcentral.nasqueron.org/source/www.git",
+ "branch": "main"
+ }
+"""
+
+/* -------------------------------------------------------------
+ Jenkins CD pipeline
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
+
pipeline {
agent any
stages {
- stage('Build') {
- steps {
- archiveArtifacts artifacts: '**', excludes: '.arc*, Jenkinsfile', onlyIfSuccessful: true
- }
- }
-
stage('Publish') {
steps {
- echo 'Deploying....'
- sshPublisher(
- failOnError: true,
- publishers: [
- sshPublisherDesc(
- configName: 'ysul-deploy',
- verbose: true,
- transfers: [
- sshTransfer(
- sourceFiles: '**',
- remoteDirectory: 'www.nasqueron.org',
- cleanRemote: true,
- )
- ]
- )
- ]
- )
+ echo 'Deploying through Alkane on web-001....'
+
+ def response = httpRequest url: "http://172.27.27.10:10206/deploy/www.nasqueron.org",
+ httpMode: "POST", requestBody: context,
+ validResponseContent: '"Success",'
+ validResponseCodes: "200"
+ println("Status: HTTP " + response.status)
+ println("Content: " + response.content)
}
}
}

File Metadata

Mime Type
text/plain
Expires
Thu, Feb 27, 22:39 (9 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2447996
Default Alt Text
D3439.diff (2 KB)

Event Timeline