You need to sign in or sign up before continuing.
Jenkinsfile 1.12 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
// Powered by Infostretch 

timestamps {

node () {

	stage ('hamara-sugam-amd64-RDV - Checkout') {
 	 checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'sagar_git', url: 'https://git.hamaralinux.org/libregeekingkid/hamara-live-build.git']]]) 
	}

rajudev's avatar
rajudev committed
11
	stage ('hamara-sugam-amd64-RDV - Build') {
12

rajudev's avatar
rajudev committed
13
	sh """ 
14

rajudev's avatar
rajudev committed
15 16 17 18 19 20 21 22
	#/bin/bash ./makeiso.sh all amd64 hamara-sugam namaste devel.hamaralinux.org
	schroot -c buster-amd64 --begin-session --session-name amd64 || schroot --recover-session -c amd64
	schroot --run-session -c amd64 -u root -- /bin/bash ./mkbuild purge amd64 hamara-sugam 
	schroot --run-session -c amd64 -u root -- /bin/bash ./mkbuild iso amd64 devel.hamaralinux.org hamara-sugam beta
	schroot --run-session -c amd64 -u root -- /bin/chown -R jenkins:jenkins ./
	schroot --end-session -c amd64
	 """ 
	}
23

rajudev's avatar
rajudev committed
24 25 26 27 28 29 30 31 32
	stage ('Deploy to the website'){
	sh """
	#### 
	#Automatically deploy ISO to this link after building the ISO. 1st Feb
	
	echo "Not deploying for now"
	#/bin/bash /hamara-data/scripts/deploy_iso_amd64.sh 
	"""
		
33 34 35
	}
}
}