diff options
| author | Max Nanis | 2025-06-26 18:08:00 +0700 |
|---|---|---|
| committer | Max Nanis | 2025-06-26 18:08:00 +0700 |
| commit | 64699784f9306397ded6c808589a97a941292e33 (patch) | |
| tree | ce562fa5e58bd72302c9793f7517f192ea35dac7 | |
| parent | 24b512f5ce0540db85f13504b5e07cd2e45b51e6 (diff) | |
| download | panel-ui-64699784f9306397ded6c808589a97a941292e33.tar.gz panel-ui-64699784f9306397ded6c808589a97a941292e33.zip | |
jenkins build init
| -rw-r--r-- | Jenkinsfile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..6bcc223 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,46 @@ +pipeline { + agent any + + options { + skipDefaultCheckout() + } + + environment { + } + + stages { + stage('setup'){ + steps { + cleanWs() + dir("panel-ui") { + checkout scmGit( + branches: [[name: env.BRANCH_NAME]], + extensions: [ cloneOption(shallow: true) ], + userRemoteConfigs: [ + [credentialsId: 'abdeb570-b708-44f3-b857-8a6b06ed9822', + url: 'ssh://code.g-r-l.com:6611/panel-ui'] + ], + + ) + } + } + } + + stage('npm.install') { + steps { + dir("panel-ui") { + sh "/usr/local/bin/npm install" + } + } + } + + stage('npm.test') { + steps { + dir("panel-ui") { + sh "/usr/local/bin/npm run test" + } + } + } + } + +} |
