Skip to content

Commit 71ba621

Browse files
committed
Remove Debugs & comments
1 parent 7530b31 commit 71ba621

File tree

1 file changed

+45
-47
lines changed

1 file changed

+45
-47
lines changed

linux_new/Jenkinsfile

Lines changed: 45 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def CheckAndUpload(String Target, String Distro, String BuildArch, String RelVer
188188
} else {
189189
echo "Target Doesnt Exist - Upload Files"
190190
// This Upload Works
191-
// jf 'rt u ${FILENAME} deb/pool/main/t/temurin-${RELNUM}/ --target-props=${DISTROLIST}deb.component=main;deb.architecture=${BUILDARCH} --flat=true'
191+
jf 'rt u ${FILENAME} deb/pool/main/t/temurin-${RELNUM}/ --target-props=${DISTROLIST}deb.component=main;deb.architecture=${BUILDARCH} --flat=true'
192192
break
193193
}
194194
case "Alpine":
@@ -200,7 +200,7 @@ def CheckAndUpload(String Target, String Distro, String BuildArch, String RelVer
200200
break
201201
} else {
202202
// This Upload Works
203-
// jf 'rt u **/build/ospackage/${FILENAME} apk/alpine/main/${BUILDARCH}/ --flat=true'
203+
jf 'rt u **/build/ospackage/${FILENAME} apk/alpine/main/${BUILDARCH}/ --flat=true'
204204
break
205205
}
206206
case "RPMS":
@@ -211,7 +211,7 @@ def CheckAndUpload(String Target, String Distro, String BuildArch, String RelVer
211211
echo "Target Exists - Skipping"
212212
break
213213
} else {
214-
// jf 'rt u ${FILENAME} ${PACKAGEDIR}/ --flat=true'
214+
jf 'rt u ${FILENAME} ${PACKAGEDIR}/ --flat=true'
215215
break
216216
}
217217
default:
@@ -447,7 +447,6 @@ pipeline {
447447
agent { label NODE_LABEL }
448448
when {
449449
expression { return !shouldSkipPipeline && !params.DRY_RUN }
450-
// expression { return params.DRY_RUN == false }
451450
}
452451
steps {
453452
script {
@@ -800,52 +799,51 @@ stage('Build & Archive Package') {
800799
} catch (Exception ex) {
801800
echo "Exception in build for ${DistArrayElement}: ${ex}"
802801
currentBuild.result = 'FAILURE'
803-
} finally {
804-
805-
def basePattern = '**/build/ospackage/*,**/build/reports/**'
806-
def archivePattern = ''
807-
808-
if (DistArrayElement == 'debian' && !params.SKIP_DEBIAN) {
809-
archivePattern = "${basePattern},**/packageTest/dependencies/deb/*"
810-
archiveArtifacts artifacts: archivePattern,
811-
onlyIfSuccessful: false,
812-
allowEmptyArchive: false
813-
} else if (DistArrayElement == 'debian') {
814-
echo "Skipping archive for Debian as SKIP_DEBIAN is true"
815-
}
816-
817-
if (DistArrayElement == 'rhel' && !params.SKIP_RHEL) {
818-
archivePattern = "${basePattern},**/packageTest/dependencies/rpm/*"
819-
archiveArtifacts artifacts: archivePattern,
820-
onlyIfSuccessful: false,
821-
allowEmptyArchive: false
822-
} else if (DistArrayElement == 'rhel') {
823-
echo "Skipping archive for RHEL as SKIP_RHEL is true"
824-
}
825-
826-
if (DistArrayElement == 'suse' && !params.SKIP_SUSE) {
827-
archivePattern = "${basePattern},**/packageTest/dependencies/rpm/*"
828-
archiveArtifacts artifacts: archivePattern,
829-
onlyIfSuccessful: false,
830-
allowEmptyArchive: false
831-
} else if (DistArrayElement == 'suse') {
832-
echo "Skipping archive for SUSE as SKIP_SUSE is true"
833-
}
834-
835-
if (DistArrayElement == 'alpine' && !params.SKIP_ALPINE) {
836-
archivePattern = "${basePattern},**/packageTest/dependencies/apk/*"
837-
archiveArtifacts artifacts: archivePattern,
838-
onlyIfSuccessful: false,
839-
allowEmptyArchive: false
840-
} else if (DistArrayElement == 'alpine') {
841-
echo "Skipping archive for Alpine as SKIP_ALPINE is true"
842-
}
843-
} // zzz
802+
} finally {
803+
def basePattern = '**/build/ospackage/*,**/build/reports/**'
804+
def archivePattern = ''
805+
806+
if (DistArrayElement == 'debian' && !params.SKIP_DEBIAN) {
807+
archivePattern = "${basePattern},**/packageTest/dependencies/deb/*"
808+
archiveArtifacts artifacts: archivePattern,
809+
onlyIfSuccessful: false,
810+
allowEmptyArchive: false
811+
} else if (DistArrayElement == 'debian') {
812+
echo "Skipping archive for Debian as SKIP_DEBIAN is true"
813+
}
814+
815+
if (DistArrayElement == 'rhel' && !params.SKIP_RHEL) {
816+
archivePattern = "${basePattern},**/packageTest/dependencies/rpm/*"
817+
archiveArtifacts artifacts: archivePattern,
818+
onlyIfSuccessful: false,
819+
allowEmptyArchive: false
820+
} else if (DistArrayElement == 'rhel') {
821+
echo "Skipping archive for RHEL as SKIP_RHEL is true"
822+
}
823+
824+
if (DistArrayElement == 'suse' && !params.SKIP_SUSE) {
825+
archivePattern = "${basePattern},**/packageTest/dependencies/rpm/*"
826+
archiveArtifacts artifacts: archivePattern,
827+
onlyIfSuccessful: false,
828+
allowEmptyArchive: false
829+
} else if (DistArrayElement == 'suse') {
830+
echo "Skipping archive for SUSE as SKIP_SUSE is true"
831+
}
832+
833+
if (DistArrayElement == 'alpine' && !params.SKIP_ALPINE) {
834+
archivePattern = "${basePattern},**/packageTest/dependencies/apk/*"
835+
archiveArtifacts artifacts: archivePattern,
836+
onlyIfSuccessful: false,
837+
allowEmptyArchive: false
838+
} else if (DistArrayElement == 'alpine') {
839+
echo "Skipping archive for Alpine as SKIP_ALPINE is true"
840+
}
844841
}
845842
}
846843
}
847844
}
848845
}
846+
}
849847
// Build And Archive Packages Stage - End
850848
// Publish Packages Stage - Start
851849
stage('Publish Packages') {
@@ -859,7 +857,7 @@ stage('Publish Packages') {
859857
steps {
860858
script {
861859
echo "Entering Stage : Publish Packages"
862-
860+
863861
echo "Done Retrieving Files"
864862

865863
// Distro Specific Uploads
@@ -893,7 +891,7 @@ stage('Publish Packages') {
893891
copyArtifacts projectName: "${env.JOB_NAME}",
894892
selector: specific("${env.BUILD_NUMBER}"),
895893
filter: '**/build/ospackage/*,**/build/reports/**,**/packageTest/dependencies/deb/*'
896-
894+
897895
echo "Preparing For Debian Upload"
898896
def DebFileName = ''
899897
def DebTarget = ''

0 commit comments

Comments
 (0)