Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12742515
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..3370353
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,79 @@
+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/x-diff
Expires
Sun, Nov 16, 13:47 (12 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3170452
Default Alt Text
(2 KB)
Attached To
Mode
rAPIREG Nasqueron private Docker registry API
Attached
Detach File
Event Timeline
Log In to Comment