git improvements

This commit is contained in:
moo
2025-08-18 07:29:24 +02:00
parent 2546476529
commit be6e173f18
12 changed files with 36 additions and 12 deletions
+3 -1
View File
@@ -11,7 +11,9 @@ stage('GetCsv') {
stage('Amazon Python') {
node("docker-alpine-jdk11-arm64")
{
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch,
depth: 1, // Only get the most recent commit
shallow: true // Perform a shallow clone
unstash 'csvfile'
sh "python3 getList.py ${BUILD_NUMBER}"
something_changed = sh(script: "python3 checkList.py ${BUILD_NUMBER}", returnStdout: true).trim()
+3 -1
View File
@@ -52,7 +52,9 @@ node("arm64")
*/
dir("sources_${branchName}")
{
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: "${currentBranch}"
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: "${currentBranch}",
depth: 1, // Only get the most recent commit
shallow: true // Perform a shallow clone
sh "make clean && make -j8"
sleep time: 5, unit: "SECONDS"
stash includes: "moo-rist-appsink", name: "buildFiles_${branchName}"
+3 -1
View File
@@ -52,7 +52,9 @@ node("arm64")
*/
dir("sources_${branchName}")
{
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: "${currentBranch}"
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: "${currentBranch}",
depth: 1, // Only get the most recent commit
shallow: true // Perform a shallow clone
sh "mkdir build && cd build && meson .. && ninja"
//sleep time: 5, unit: "SECONDS"
dir("build")
+3 -1
View File
@@ -52,7 +52,9 @@ node("arm64")
*/
dir("sources_${branchName}")
{
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: "${currentBranch}"
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: "${currentBranch}",
depth: 1, // Only get the most recent commit
shallow: true // Perform a shallow clone
sh "./configure --enable-bonding --enable-shared --enable-static --enable-testing --openssl-use-static-libs && make clean && make -j8"
//sleep time: 5, unit: "SECONDS"
stash includes: "srt-*", name: "buildFiles_${branchName}"
+3 -1
View File
@@ -53,7 +53,9 @@ node("docker-debian-jdk11-dotnet-sdk-8-arm64")
*/
dir("sources_${branchName}")
{
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: "${currentBranch}"
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: "${currentBranch}",
depth: 1, // Only get the most recent commit
shallow: true // Perform a shallow clone
sh "dotnet publish -c Release -o ../output_${branchName}/moowss-client"
}
//sleep time: 10, unit: "SECONDS"
+3 -1
View File
@@ -52,7 +52,9 @@ node("arm64")
*/
dir("sources_${branchName}")
{
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: "${currentBranch}"
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: "${currentBranch}",
depth: 1, // Only get the most recent commit
shallow: true // Perform a shallow clone
sh "make -j8"
//sleep time: 5, unit: "SECONDS"
stash includes: "srtla_send,srtla_rec", name: "buildFiles_${branchName}"
+3 -1
View File
@@ -9,7 +9,9 @@ stage("build fresh bom and get project")
env.DOTNET_CLI_TELEMETRY_OPTOUT=1
dir("sources")
{
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch,
depth: 1, // Only get the most recent commit
shallow: true // Perform a shallow clone
}
sh "dotnet CycloneDX sources/moowss-client.sln -o output"
dependencyTrackPublisher artifact: 'output/bom.xml', projectId: 'af221c91-7201-4126-950e-0ca8b46327ac', synchronous: true
+3 -1
View File
@@ -9,7 +9,9 @@ stage("build fresh bom and get project")
env.DOTNET_CLI_TELEMETRY_OPTOUT=1
dir("sources")
{
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch,
depth: 1, // Only get the most recent commit
shallow: true // Perform a shallow clone
}
sh "dotnet CycloneDX sources/moowss-server.sln -o output"
dependencyTrackPublisher artifact: 'output/bom.xml', projectId: '830883cf-1165-495e-bde9-ec2d1c8a19d4', synchronous: true
+3 -1
View File
@@ -129,7 +129,9 @@ node("master")
}
stage("Collecting Files")
{
git credentialsId: gitSettings.giteaGitUserCredID, url: gitSettings.giteaGitRepo, branch: gitSettings.giteaGitBranch
git credentialsId: gitSettings.giteaGitUserCredID, url: gitSettings.giteaGitRepo, branch: gitSettings.giteaGitBranch,
depth: 1, // Only get the most recent commit
shallow: true // Perform a shallow clone
def branches = [:]
for(packageRelease in packageReleases)
{
+3 -1
View File
@@ -6,7 +6,9 @@ node("docker-debian-jdk11-dotnet-sdk")
{
stage('SonarQube Analysis')
{
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch,
depth: 1, // Only get the most recent commit
shallow: true // Perform a shallow clone
withSonarQubeEnv(installationName: "Main", credentialsId: "sonarqube-token")
{
sh "dotnet sonarscanner begin /k:\"moowss-client\""
+3 -1
View File
@@ -6,7 +6,9 @@ node("docker-debian-jdk11-dotnet-sdk")
{
stage('SonarQube Analysis')
{
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch,
depth: 1, // Only get the most recent commit
shallow: true // Perform a shallow clone
withSonarQubeEnv(installationName: "Main", credentialsId: "sonarqube-token")
{
sh "dotnet sonarscanner begin /k:\"moowss-server\""
+3 -1
View File
@@ -6,7 +6,9 @@ def gitSettings = [ defaultGitUserCredID: 'gitea',
stage('Win2Day Python') {
node("docker-alpine-jdk11-arm64")
{
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch
git credentialsId: gitSettings.defaultGitUserCredID, url: gitSettings.defaultGitRepo, branch: gitSettings.defaultGitBranch,
depth: 1, // Only get the most recent commit
shallow: true // Perform a shallow clone
something_changed = sh(script: "python3 dailywinner.py", returnStdout: true).trim()
echo "${something_changed}"
if(something_changed == "_mo*****")