git improvements
This commit is contained in:
Vendored
+16
-3
@@ -11,9 +11,22 @@ stage('GetCsv') {
|
||||
stage('Amazon Python') {
|
||||
node("docker-alpine-jdk11-arm64")
|
||||
{
|
||||
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch,
|
||||
depth: 1, // Only get the most recent commit
|
||||
shallow: true // Perform a shallow clone
|
||||
//git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch
|
||||
checkout([
|
||||
$class: 'GitSCM',
|
||||
branches: [[name: gitSettings.defaultGitBranch]],
|
||||
extensions: [
|
||||
[$class: 'CloneOption',
|
||||
honorRefspec: true,
|
||||
shallow: true,
|
||||
depth: 1]
|
||||
],
|
||||
userRemoteConfigs: [[
|
||||
url: gitSettings.defaultGitRepo,
|
||||
credentialsId: gitSettings.defaultGitUserCredID,
|
||||
refspec: "+refs/heads/${gitSettings.defaultGitBranch}:refs/remotes/origin/${gitSettings.defaultGitBranch}"
|
||||
]]
|
||||
])
|
||||
unstash 'csvfile'
|
||||
sh "python3 getList.py ${BUILD_NUMBER}"
|
||||
something_changed = sh(script: "python3 checkList.py ${BUILD_NUMBER}", returnStdout: true).trim()
|
||||
|
||||
Vendored
+1
-1
@@ -64,7 +64,7 @@ node("arm64")
|
||||
],
|
||||
userRemoteConfigs: [[
|
||||
url: gitSettings.defaultGitRepo,
|
||||
credentialsId: gitSettings.giteaGitUserCredID,
|
||||
credentialsId: gitSettings.defaultGitUserCredID,
|
||||
refspec: "+refs/heads/${currentBranch}:refs/remotes/origin/${currentBranch}"
|
||||
]]
|
||||
])
|
||||
|
||||
Vendored
+1
-1
@@ -64,7 +64,7 @@ node("arm64")
|
||||
],
|
||||
userRemoteConfigs: [[
|
||||
url: gitSettings.defaultGitRepo,
|
||||
credentialsId: gitSettings.giteaGitUserCredID,
|
||||
credentialsId: gitSettings.defaultGitUserCredID,
|
||||
refspec: "+refs/heads/${currentBranch}:refs/remotes/origin/${currentBranch}"
|
||||
]]
|
||||
])
|
||||
|
||||
Vendored
+1
-1
@@ -64,7 +64,7 @@ node("arm64")
|
||||
],
|
||||
userRemoteConfigs: [[
|
||||
url: gitSettings.defaultGitRepo,
|
||||
credentialsId: gitSettings.giteaGitUserCredID,
|
||||
credentialsId: gitSettings.defaultGitUserCredID,
|
||||
refspec: "+refs/heads/${currentBranch}:refs/remotes/origin/${currentBranch}"
|
||||
]]
|
||||
])
|
||||
|
||||
Vendored
+1
-1
@@ -65,7 +65,7 @@ node("docker-debian-jdk11-dotnet-sdk-8-arm64")
|
||||
],
|
||||
userRemoteConfigs: [[
|
||||
url: gitSettings.defaultGitRepo,
|
||||
credentialsId: gitSettings.giteaGitUserCredID,
|
||||
credentialsId: gitSettings.defaultGitUserCredID,
|
||||
refspec: "+refs/heads/${currentBranch}:refs/remotes/origin/${currentBranch}"
|
||||
]]
|
||||
])
|
||||
|
||||
Vendored
+1
-1
@@ -64,7 +64,7 @@ node("arm64")
|
||||
],
|
||||
userRemoteConfigs: [[
|
||||
url: gitSettings.defaultGitRepo,
|
||||
credentialsId: gitSettings.giteaGitUserCredID,
|
||||
credentialsId: gitSettings.defaultGitUserCredID,
|
||||
refspec: "+refs/heads/${currentBranch}:refs/remotes/origin/${currentBranch}"
|
||||
]]
|
||||
])
|
||||
|
||||
Vendored
+16
-3
@@ -6,9 +6,22 @@ node("docker-debian-jdk11-dotnet-sdk")
|
||||
{
|
||||
stage('SonarQube Analysis')
|
||||
{
|
||||
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch,
|
||||
depth: 1, // Only get the most recent commit
|
||||
shallow: true // Perform a shallow clone
|
||||
//git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch
|
||||
checkout([
|
||||
$class: 'GitSCM',
|
||||
branches: [[name: gitSettings.defaultGitBranch]],
|
||||
extensions: [
|
||||
[$class: 'CloneOption',
|
||||
honorRefspec: true,
|
||||
shallow: true,
|
||||
depth: 1]
|
||||
],
|
||||
userRemoteConfigs: [[
|
||||
url: gitSettings.defaultGitRepo,
|
||||
credentialsId: gitSettings.defaultGitUserCredID,
|
||||
refspec: "+refs/heads/${gitSettings.defaultGitBranch}:refs/remotes/origin/${gitSettings.defaultGitBranch}"
|
||||
]]
|
||||
])
|
||||
withSonarQubeEnv(installationName: "Main", credentialsId: "sonarqube-token")
|
||||
{
|
||||
sh "dotnet sonarscanner begin /k:\"moowss-client\""
|
||||
|
||||
Vendored
+4
-4
@@ -9,7 +9,7 @@ node("docker-debian-jdk11-dotnet-sdk")
|
||||
//git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch
|
||||
checkout([
|
||||
$class: 'GitSCM',
|
||||
branches: [[name: gitSettings.giteaGitBranch]],
|
||||
branches: [[name: gitSettings.defaultGitBranch]],
|
||||
extensions: [
|
||||
[$class: 'CloneOption',
|
||||
honorRefspec: true,
|
||||
@@ -17,9 +17,9 @@ node("docker-debian-jdk11-dotnet-sdk")
|
||||
depth: 1]
|
||||
],
|
||||
userRemoteConfigs: [[
|
||||
url: gitSettings.giteaGitRepo,
|
||||
credentialsId: gitSettings.giteaGitUserCredID,
|
||||
refspec: "+refs/heads/${gitSettings.giteaGitBranch}:refs/remotes/origin/${gitSettings.giteaGitBranch}"
|
||||
url: gitSettings.defaultGitRepo,
|
||||
credentialsId: gitSettings.defaultGitUserCredID,
|
||||
refspec: "+refs/heads/${gitSettings.defaultGitBranch}:refs/remotes/origin/${gitSettings.defaultGitBranch}"
|
||||
]]
|
||||
])
|
||||
withSonarQubeEnv(installationName: "Main", credentialsId: "sonarqube-token")
|
||||
|
||||
Vendored
+4
-4
@@ -9,7 +9,7 @@ stage('Win2Day Python') {
|
||||
//git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch
|
||||
checkout([
|
||||
$class: 'GitSCM',
|
||||
branches: [[name: gitSettings.giteaGitBranch]],
|
||||
branches: [[name: gitSettings.defaultGitBranch]],
|
||||
extensions: [
|
||||
[$class: 'CloneOption',
|
||||
honorRefspec: true,
|
||||
@@ -17,9 +17,9 @@ stage('Win2Day Python') {
|
||||
depth: 1]
|
||||
],
|
||||
userRemoteConfigs: [[
|
||||
url: gitSettings.giteaGitRepo,
|
||||
credentialsId: gitSettings.giteaGitUserCredID,
|
||||
refspec: "+refs/heads/${gitSettings.giteaGitBranch}:refs/remotes/origin/${gitSettings.giteaGitBranch}"
|
||||
url: gitSettings.defaultGitRepo,
|
||||
credentialsId: gitSettings.defaultGitUserCredID,
|
||||
refspec: "+refs/heads/${gitSettings.defaultGitBranch}:refs/remotes/origin/${gitSettings.defaultGitBranch}"
|
||||
]]
|
||||
])
|
||||
something_changed = sh(script: "python3 dailywinner.py", returnStdout: true).trim()
|
||||
|
||||
Reference in New Issue
Block a user