Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,6 @@ pipeline {
}
}

stage('Lint') {
when { not { branch 'main' } }
steps {
container('nodejs') {
script {
sh(script: 'npm run lint')
}
}
}
}

stage('Commit SemVer tag') {
when { branch 'main' }
steps {
Expand All @@ -75,7 +64,7 @@ pipeline {
environment {
NPM_TOKEN = credentials('jenkins-npm-automation-token')
}
when { branch 'main' }
//when { branch 'main' }
steps {
container('nodejs') {
withCredentials([
Expand All @@ -91,14 +80,14 @@ pipeline {
node --version
npm --version
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
#sleep 1800
sleep 18000
npm install && npm prune
npm run build
mv dist/js/main.css dist/css/main.css
sed -i '.bak' 's/__APP_VERSION__/$semver/g' dist/index.html
aws s3 sync dist/css s3://track.flow.io/test/css/$semver --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
aws s3 sync dist/js s3://track.flow.io/test/js/$semver --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
sleep 1800
#sleep 1800
aws s3 cp dist/index.html s3://track.flow.io/test --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
"""
}
Expand Down