workflow
Some checks failed
JslOrganizeInternalOAPip/pipeline/head There was a failure building this commit
Some checks failed
JslOrganizeInternalOAPip/pipeline/head There was a failure building this commit
This commit is contained in:
parent
2f089d45d7
commit
beb44faf39
|
@ -1,24 +0,0 @@
|
|||
name: Qodana测试
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- feature
|
||||
|
||||
jobs:
|
||||
qodana:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
checks: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: 0
|
||||
- name: 'Qodana Scan'
|
||||
uses: JetBrains/qodana-action@v2023.3.1
|
||||
env:
|
||||
QODANA_TOKEN: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb24iOiJwNTZYRyIsInByb2plY3QiOiIzd1JQNyIsInRva2VuIjoiQWFxVkoifQ.R3TH0E2LgVpBorJ1wyIx3zjIM1p4j-taEEShZKhH2l8
|
41
Jenkinsfile
vendored
41
Jenkinsfile
vendored
|
@ -1,21 +1,24 @@
|
|||
pipeline {
|
||||
environment {
|
||||
QODANA_TOKEN=credentials('eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb24iOiJwNTZYRyIsInByb2plY3QiOiIzd1JQNyIsInRva2VuIjoiQWFxVkoifQ.R3TH0E2LgVpBorJ1wyIx3zjIM1p4j-taEEShZKhH2l8')
|
||||
}
|
||||
agent {
|
||||
docker {
|
||||
args '''
|
||||
-v "${WORKSPACE}":/data/project
|
||||
--entrypoint=""
|
||||
'''
|
||||
image 'jetbrains/qodana-<linter>'
|
||||
}
|
||||
}
|
||||
stages {
|
||||
stage('Qodana') {
|
||||
steps {
|
||||
sh '''qodana'''
|
||||
}
|
||||
}
|
||||
}
|
||||
environment {
|
||||
QODANA_TOKEN = credentials('eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb24iOiJwNTZYRyIsInByb2plY3QiOiIzd1JQNyIsInRva2VuIjoiQWFxVkoifQ.R3TH0E2LgVpBorJ1wyIx3zjIM1p4j-taEEShZKhH2l8')
|
||||
}
|
||||
agent {
|
||||
docker {
|
||||
args '''
|
||||
-v "${WORKSPACE}":/data/project
|
||||
--entrypoint=""
|
||||
'''
|
||||
image 'jetbrains/qodana-jvm'
|
||||
}
|
||||
}
|
||||
stages {
|
||||
stage('Qodana') {
|
||||
when {
|
||||
branch 'feature'
|
||||
}
|
||||
steps {
|
||||
sh '''qodana'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user