Skip to content

Commit

Permalink
Added jenkinsfile
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp <philipp.koenig@redeviation.com>
  • Loading branch information
Kiuryy committed Mar 9, 2021
1 parent 6422db5 commit 504385a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env groovy
pipeline {
agent any
tools { nodejs "node" }
options {
buildDiscarder(logRotator(daysToKeepStr: '90', artifactNumToKeepStr: '3'))
}
stages {
stage('Preflight') {
steps {
echo sh(returnStdout: true, script: 'env')
sh 'node -v'
}
}
stage('Init') {
steps {
sh 'git log --reverse -1'
sh 'npm --version'
sh 'npm run init'
}
}
stage('Build') {
steps {
sh 'mkdir -p ../node.js_Build'
sh 'wget -O ../node.js_Build/funcs.js https://raw.githubusercontent.com/Kiuryy/node.js_Build/master/funcs.js'
sh 'npm run release'
}
}
}
post {
always {
archiveArtifacts artifacts: '*.zip'
}
}
}

0 comments on commit 504385a

Please sign in to comment.