Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F57003441
Jenkinsfile
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
Jenkinsfile
View Options
pipeline
{
agent
none
stages
{
stage
(
'Doc'
)
{
parallel
{
stage
(
'Cargo doc'
)
{
agent
{
label
"rust"
}
steps
{
git
'https://devcentral.nasqueron.org/source/docker-registry-api.git'
sh
'''
cargo build
cargo doc || cargo doc --no-deps
cd target/doc
tar czf ../doc-rust.tar.gz *
'''
}
post
{
success
{
archiveArtifacts
artifacts:
'target/doc-rust.tar.gz'
}
}
}
stage
(
'OpenAPI doc'
)
{
agent
{
label
"node"
}
steps
{
git
'https://devcentral.nasqueron.org/source/docker-registry-api.git'
sh
'''
mkdir -p target
cd target
spectacle ../nasqueron-api-docker-registry.spec.yaml --logo-file "https://assets.nasqueron.org/logos/logo-main-133px.png"
cd public
mkdir -p images
cd images
wget https://assets.nasqueron.org/logos/logo-main-133px.png
cd ..
sed -i "s/75px/131px/g" stylesheets/*.css
tar czf ../doc-openapi.tar.gz *
'''
}
post
{
success
{
archiveArtifacts
artifacts:
'target/doc-openapi.tar.gz'
}
}
}
}
}
stage
(
'Publish'
)
{
agent
any
steps
{
sshPublisher
(
failOnError:
true
,
publishers:
[
sshPublisherDesc
(
configName:
'ysul-deploy'
,
transfers:
[
sshTransfer
(
execCommand:
"deploy-docker-registry-api-doc ${env.BUILD_NUMBER}"
)
]
)
]
)
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 19:29 (3 d, 7 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4254622
Default Alt Text
Jenkinsfile (2 KB)
Attached To
Mode
rAPIREG Nasqueron private Docker registry API
Attached
Detach File
Event Timeline
Log In to Comment