Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F57012159
Jenkinsfile
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
Jenkinsfile
View Options
/* -------------------------------------------------------------
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
(
'Publish'
)
{
steps
{
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 19:45 (3 d, 20 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4252550
Default Alt Text
Jenkinsfile (1 KB)
Attached To
Mode
rWWW www.nasqueron.org
Attached
Detach File
Event Timeline
Log In to Comment