Skip to content

Commit

Permalink
~ experimental: jenkins pipeline for home server #2
Browse files Browse the repository at this point in the history
  • Loading branch information
kasisoft committed Aug 20, 2024
1 parent 8abd321 commit 299866a
Show file tree
Hide file tree
Showing 3 changed files with 972 additions and 798 deletions.
31 changes: 18 additions & 13 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
pipeline {
agent any
tools {
}
environment {
}
// tools {
// }
// environment {
// }
stages {
stage('Initialize') {
steps {
sh 'echo "PATH = ${PATH}"'
}
}
stage('Build') {
steps {
}
}
stage('Testing') {
stage('Install pnpm') {
steps {
sh 'npm install -g pnpm'
}
}
stage('SonarQube Analysis') {
steps {
// stage('Build') {
// steps {
// }
// }
// stage('Testing') {
// steps {
// }
// }
// stage('SonarQube Analysis') {
// steps {
// properties such as sonar.host.url and sonar.login are configured in the m2 settings.xml for this profile
// sh 'mvn clean verify -Psonar -Dsonar.projectKey=kcl'
}
}
// }
// }
}
}

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"prepare": "mkdir -p lib && cp -f src/main/index.d.ts lib/index.d.ts",
"prepack": "rollup -c",
"pack": "pnpm pack",
"sonar": "sonar-scanner",
"test": "vitest run"
},
"repository": {
Expand Down Expand Up @@ -51,6 +52,7 @@
"remark-parse": "^11.0.0",
"remark-stringify": "^11.0.0",
"rollup": "^4.12.0",
"sonar-scanner": "^3.1.0",
"tslib": "^2.6.2",
"typescript": "^5.3.2",
"unified": "^11.0.4",
Expand Down
Loading

0 comments on commit 299866a

Please sign in to comment.